diff options
Diffstat (limited to 'script/jquery-validate/localization/methods_es_CL.js')
-rw-r--r-- | script/jquery-validate/localization/methods_es_CL.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/script/jquery-validate/localization/methods_es_CL.js b/script/jquery-validate/localization/methods_es_CL.js new file mode 100644 index 0000000..5904fa1 --- /dev/null +++ b/script/jquery-validate/localization/methods_es_CL.js @@ -0,0 +1,12 @@ +/* + * Localized default methods for the jQuery validation plugin. + * Locale: ES_CL + */ +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 ); + } +} ); |