12345678910111213141516171819202122232425262728293031323334 |
- //
- // SPSBVerificationProfile.m
- // 我的社保
- //
- // Created by shanp on 2021/4/19.
- //
- #import "SPSBVerificationProfile.h"
- CONST_INTEGER SPSBVerifyCodeLength = 4;
- CONST_INTEGER SPSBPhoneNumLength = 11;
- CONST_INTEGER SPSBMinPasswordLength = 6;
- CONST_INTEGER SPSBMaxPasswordLength = 18;
- CONST_INTEGER SPSBMinBankNumLength = 15;
- CONST_INTEGER SPSBMaxBankNumLength = 22;
- CONST_INTEGER SPSBMinBankNameLength = 4;
- CONST_INTEGER SPSBMaxBankNameLength = 16;
- CONST_INTEGER SPSBMaxNameLength = 16;
- CONST_INTEGER SPSBMaxMailAddressLength = 50;
- CONST_INTEGER SPSBMaxHouseholdRegisterAddressLength = 100;
- CONST_INTEGER SPSBMaxBankBranceLength = 64;
- CONST_INTEGER SPSBIdentifierCardNumLength = 18;
- bool spsb_matchPassword(NSString *password) {
- NSString * COS = @"(^[a-zA-Z0-9_]*$)";
- NSPredicate *regextestTel = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", COS];
- if ([regextestTel evaluateWithObject:password]) {
- debugLog(@"YES");
- return true;
- } else {
- return false;
- }
- }
|