We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72dd2ed commit 574c3c6Copy full SHA for 574c3c6
1 file changed
Validator/PasswordValidation.swift
@@ -10,6 +10,14 @@ import Foundation
10
11
class PasswordValidation : Validation {
12
13
+ // Alternative Regexes
14
+
15
+ // 8 characters. One uppercase. One Lowercase. One number.
16
+ // var PASSWORD_REGEX = "^(?=.*?[A-Z])(?=.*?[0-9])(?=.*?[a-z]).{8,}$"
17
+ //
18
+ // no length. One uppercase. One lowercae. One number.
19
+ // var PASSWORD_REGEX = "^(?=.*?[A-Z])(?=.*?[0-9])(?=.*?[a-z]).*?$"
20
21
// 8 characters. one uppercase
22
var PASSWORD_REGEX = "^(?=.*?[A-Z]).{8,}$"
23
0 commit comments