diff options
author | yehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664> | 2017-10-15 06:46:12 +0000 |
---|---|---|
committer | yehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664> | 2017-10-15 06:46:12 +0000 |
commit | edff34b548db49e94db2b6548adc95cc6001dcf5 (patch) | |
tree | 40ff112761d82af1d8c1c89d30ede8206502e17b /script/jquery-validate/localization/methods_es_CL.js | |
parent | 2065680a6ff5379064031c260433bf9a9cd314b9 (diff) | |
download | Post-SMTP-edff34b548db49e94db2b6548adc95cc6001dcf5.zip |
release
git-svn-id: https://plugins.svn.wordpress.org/post-smtp/trunk@1746635 b8457f37-d9ea-0310-8a92-e5e31aec5664
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 ); + } +} ); |