Skip to content

Commit f70c133

Browse files
committed
Merge pull request posabsolute#740 from DennisBruijn/patch-1
Updated the regex and alertText of the date field to the Dutch date nota...
2 parents f0d62ba + 7640d0b commit f70c133

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/languages/jquery.validationEngine-nl.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@
8585
"alertText": "* Ongeldig komma getal"
8686
},
8787
"date": {
88-
"regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/,
89-
"alertText": "* Ongeldige datum, formaat moet JJJJ-MM-DD zijn"
88+
"regex": /^(?:(?:31(\/|-|\.)(?:0?[13578]|1[02]))\1|(?:(?:29|30)(\/|-|\.)(?:0?[1,3-9]|1[0-2])\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})$|^(?:29(\/|-|\.)0?2\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:0?[1-9]|1\d|2[0-8])(\/|-|\.)(?:(?:0?[1-9])|(?:1[0-2]))\4(?:(?:1[6-9]|[2-9]\d)?\d{2})$/,
89+
"alertText": "* Ongeldige datum, formaat moet DD-MM-JJJJ zijn"
9090
},
9191
"ipv4": {
9292
"regex": /^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/,

0 commit comments

Comments
 (0)