diff options
Diffstat (limited to 'script/jquery-validate/localization/methods_de.js')
-rw-r--r-- | script/jquery-validate/localization/methods_de.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/script/jquery-validate/localization/methods_de.js b/script/jquery-validate/localization/methods_de.js new file mode 100644 index 0000000..34f6578 --- /dev/null +++ b/script/jquery-validate/localization/methods_de.js @@ -0,0 +1,12 @@ +/* + * Localized default methods for the jQuery validation plugin. + * Locale: DE + */ +jQuery.extend( jQuery.validator.methods, { + date: function( value, element ) { + return this.optional( element ) || /^\d\d?\.\d\d?\.\d\d\d?\d?$/.test( value ); + }, + number: function( value, element ) { + return this.optional( element ) || /^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test( value ); + } +} ); |