Skip to content
Snippets Groups Projects

Adds special chars to regex on account backup restore passphrase

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -58,7 +58,7 @@ public extension Validator where T == String {
return .failure("")
}
let regex = try? NSRegularExpression(pattern: "^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)[a-zA-Z\\d]{8,}$")
let regex = try? NSRegularExpression(pattern: "^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)[a-zA-Z\\d!@#$%^&*]{8,}$")
guard let regex = regex, regex.firstMatch(in: passphrase, options: [], range: passphrase.fullRange()) != nil else {
return .failure("")
Loading