methods_pt.js 426 B

12345678910111213141516171819
  1. (function( factory ) {
  2. if ( typeof define === "function" && define.amd ) {
  3. define( ["jquery", "../jquery.validate"], factory );
  4. } else {
  5. factory( jQuery );
  6. }
  7. }(function( $ ) {
  8. /*
  9. * Localized default methods for the jQuery validation plugin.
  10. * Locale: PT_BR
  11. */
  12. $.extend($.validator.methods, {
  13. date: function(value, element) {
  14. return this.optional(element) || /^\d\d?\/\d\d?\/\d\d\d?\d?$/.test(value);
  15. }
  16. });
  17. }));