2014-04-16 01:48:10 +02:00
|
|
|
(function( factory ) {
|
|
|
|
if ( typeof define === "function" && define.amd ) {
|
|
|
|
define( ["jquery", "../jquery.validate"], factory );
|
|
|
|
} else {
|
|
|
|
factory( jQuery );
|
|
|
|
}
|
|
|
|
}(function( $ ) {
|
|
|
|
|
2013-03-19 00:06:47 +01:00
|
|
|
/*
|
|
|
|
* Localized default methods for the jQuery validation plugin.
|
|
|
|
* Locale: DE
|
|
|
|
*/
|
2014-04-16 01:48:10 +02:00
|
|
|
$.extend($.validator.methods, {
|
2013-03-19 00:06:47 +01:00
|
|
|
date: function(value, element) {
|
2018-12-03 09:30:11 +01:00
|
|
|
return this.optional(element) || /^[\d]{1,4}\-[0-1][0-9]\-[0-3][0-9]?$/.test(value);
|
2013-03-19 00:06:47 +01:00
|
|
|
},
|
|
|
|
number: function(value, element) {
|
|
|
|
return this.optional(element) || /^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(value);
|
|
|
|
}
|
2014-04-16 01:48:10 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
}));
|