SPSBVerificationProfile.m 1015 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // SPSBVerificationProfile.m
  3. // 我的社保
  4. //
  5. // Created by shanp on 2021/4/19.
  6. //
  7. #import "SPSBVerificationProfile.h"
  8. CONST_INTEGER SPSBVerifyCodeLength = 4;
  9. CONST_INTEGER SPSBPhoneNumLength = 11;
  10. CONST_INTEGER SPSBMinPasswordLength = 6;
  11. CONST_INTEGER SPSBMaxPasswordLength = 18;
  12. CONST_INTEGER SPSBMinBankNumLength = 15;
  13. CONST_INTEGER SPSBMaxBankNumLength = 22;
  14. CONST_INTEGER SPSBMinBankNameLength = 4;
  15. CONST_INTEGER SPSBMaxBankNameLength = 16;
  16. CONST_INTEGER SPSBMaxNameLength = 16;
  17. CONST_INTEGER SPSBMaxMailAddressLength = 50;
  18. CONST_INTEGER SPSBMaxHouseholdRegisterAddressLength = 100;
  19. CONST_INTEGER SPSBMaxBankBranceLength = 64;
  20. CONST_INTEGER SPSBIdentifierCardNumLength = 18;
  21. bool spsb_matchPassword(NSString *password) {
  22. NSString * COS = @"(^[a-zA-Z0-9_]*$)";
  23. NSPredicate *regextestTel = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", COS];
  24. if ([regextestTel evaluateWithObject:password]) {
  25. debugLog(@"YES");
  26. return true;
  27. } else {
  28. return false;
  29. }
  30. }