Skip to content
Snippets Groups Projects
Commit 3f7d44b6 authored by Ahmed Shehata's avatar Ahmed Shehata
Browse files

Merge branch 'special-chars-abc-pass' into 'development'

Adds special chars to regex on account backup restore passphrase

See merge request elixxir/client-ios!18
parents 836f5b69 4eead5b2
No related branches found
No related tags found
3 merge requests!361.1.1b141,!29Development 2.1 version release,!18Adds special chars to regex on account backup restore passphrase
......@@ -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("")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment