PageRenderTime 24ms CodeModel.GetById 16ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/jquery-validate/localization/methods_de.js

#
JavaScript | 12 lines | 8 code | 0 blank | 4 comment | 2 complexity | a9d8792f8e46298165daaf4e9a5d98ad MD5 | raw file
 1/*
 2 * Localized default methods for the jQuery validation plugin.
 3 * Locale: DE
 4 */
 5jQuery.extend(jQuery.validator.methods, {
 6	date: function(value, element) {
 7		return this.optional(element) || /^\d\d?\.\d\d?\.\d\d\d?\d?$/.test(value);
 8	},
 9	number: function(value, element) {
10		return this.optional(element) || /^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(value);
11	}
12});