Skip to content

Commit d89d18b

Browse files
author
Asia
authored
Update README.md
Fixed bug with ZipCodeRule (: for the place of =)
1 parent 2a6c23a commit d89d18b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ override func viewDidLoad() {
8282

8383
// You can now pass in regex and length parameters through overloaded contructors
8484
validator.registerField(phoneNumberTextField, errorLabel: phoneNumberErrorLabel, rules: [RequiredRule(), MinLengthRule(length: 9)])
85-
validator.registerField(zipcodeTextField, errorLabel: zipcodeErrorLabel, rules: [RequiredRule(), ZipCodeRule(regex = "\\d{5}")])
85+
validator.registerField(zipcodeTextField, errorLabel: zipcodeErrorLabel, rules: [RequiredRule(), ZipCodeRule(regex : "\\d{5}")])
8686

8787
// You can unregister a text field if you no longer want to validate it
8888
validator.unregisterField(fullNameTextField)

0 commit comments

Comments
 (0)