GPQAPP
21 строка · 554.0 Байт
1(function( factory ) {2if ( typeof define === "function" && define.amd ) {3define( ["jquery", "../jquery.validate"], factory );4} else if (typeof module === "object" && module.exports) {5module.exports = factory( require( "jquery" ) );6} else {7factory( jQuery );8}9}(function( $ ) {10
11/*
12* Localized default methods for the jQuery validation plugin.
13* Locale: PT_BR
14*/
15$.extend( $.validator.methods, {16date: function( value, element ) {17return this.optional( element ) || /^\d\d?\/\d\d?\/\d\d\d?\d?$/.test( value );18}19} );20return $;21}));