Merge pull request #1573 from descipher/master

Add full Canadian postal code validation.
This commit is contained in:
Igor Kulikov 2019-03-27 12:58:59 +02:00 committed by GitHub
commit 95cad2db22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -283,7 +283,7 @@ function Contact($compile, $templateCache) {
"Austria": "[0-9]{4}",
"Belgium": "[0-9]{4}",
"Brazil": "[0-9]{5}[\\-]?[0-9]{3}",
"Canada": "[A-Za-z][0-9][A-Za-z] [0-9][A-Za-z][0-9]",
"Canada": "^(?!.*[DFIOQU])[A-VXY][0-9][A-Z][ -]?[0-9][A-Z][0-9]$",
"Denmark": "[0-9]{3,4}",
"Faroe Islands": "[0-9]{3,4}",
"Netherlands": "[1-9][0-9]{3}\\s?[a-zA-Z]{2}",