2015-04-07 05:56:00 +02:00
|
|
|
(function( factory ) {
|
|
|
|
if ( typeof define === "function" && define.amd ) {
|
|
|
|
define( ["jquery", "../jquery.validate"], factory );
|
2019-01-11 01:27:19 +01:00
|
|
|
} else if (typeof module === "object" && module.exports) {
|
|
|
|
module.exports = factory( require( "jquery" ) );
|
2015-04-07 05:56:00 +02:00
|
|
|
} else {
|
|
|
|
factory( jQuery );
|
|
|
|
}
|
|
|
|
}(function( $ ) {
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Localized default methods for the jQuery validation plugin.
|
|
|
|
* Locale: DE
|
|
|
|
*/
|
2019-01-11 01:27:19 +01:00
|
|
|
$.extend( $.validator.methods, {
|
|
|
|
date: function( value, element ) {
|
|
|
|
return this.optional( element ) || /^\d\d?\.\d\d?\.\d\d\d?\d?$/.test( value );
|
2015-04-07 05:56:00 +02:00
|
|
|
},
|
2019-01-11 01:27:19 +01:00
|
|
|
number: function( value, element ) {
|
|
|
|
return this.optional( element ) || /^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test( value );
|
2015-04-07 05:56:00 +02:00
|
|
|
}
|
2019-01-11 01:27:19 +01:00
|
|
|
} );
|
|
|
|
return $;
|
2015-04-07 05:56:00 +02:00
|
|
|
}));
|