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