COVIDSafe code from version 1.10 (#20)

This commit is contained in:
COVIDSafe Support 2020-08-18 10:52:17 +10:00 committed by GitHub
parent 3b1d8fa3f4
commit 4ddb77535e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
37 changed files with 2681 additions and 328 deletions

View file

@ -273,7 +273,7 @@ class PersonalDetailsViewController: UIViewController, UITextFieldDelegate, UIPi
hasError = true
fullNameErrorLabel.text = "personal_details_name_error_prompt".localizedString()
}
else if textField.text?.range(of: #"^[A-Za-z0-9][A-Za-z'0-9\-\x{00C0}-\x{017F} ]{0,80}$"#, options: .regularExpression) == nil {
else if textField.text?.range(of: #"^[A-Za-z0-9\x{00C0}-\x{017F}][A-Za-z'0-9\-\x{00C0}-\x{017F} ]{0,80}$"#, options: .regularExpression) == nil {
hasError = true
fullNameErrorLabel.text = "personal_details_name_characters_prompt".localizedString()
}