PageRenderTime 19ms CodeModel.GetById 15ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
JavaScript | 9 lines | 5 code | 0 blank | 4 comment | 1 complexity | 09b350c9c069b5a82d5811339ac15ab6 MD5 | raw file
1/*
2 * Localized default methods for the jQuery validation plugin.
3 * Locale: PT_BR
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});