GPQAPP
24 строки · 688.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: DE
14*/
15$.extend( $.validator.methods, {16date: function( value, element ) {17return this.optional( element ) || /^\d\d?\.\d\d?\.\d\d\d?\d?$/.test( value );18},19number: function( value, element ) {20return this.optional( element ) || /^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test( value );21}22} );23return $;24}));