summaryrefslogtreecommitdiff
path: root/script/jquery-validate/localization/methods_nl.js
diff options
context:
space:
mode:
Diffstat (limited to 'script/jquery-validate/localization/methods_nl.js')
-rw-r--r--script/jquery-validate/localization/methods_nl.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/script/jquery-validate/localization/methods_nl.js b/script/jquery-validate/localization/methods_nl.js
new file mode 100644
index 0000000..b07768b
--- /dev/null
+++ b/script/jquery-validate/localization/methods_nl.js
@@ -0,0 +1,9 @@
+/*
+ * Localized default methods for the jQuery validation plugin.
+ * Locale: NL
+ */
+jQuery.extend( jQuery.validator.methods, {
+ date: function( value, element ) {
+ return this.optional( element ) || /^\d\d?[\.\/\-]\d\d?[\.\/\-]\d\d\d?\d?$/.test( value );
+ }
+} );