Created
September 17, 2014 09:08
-
-
Save mmichelli/43bce54802ac8b008e17 to your computer and use it in GitHub Desktop.
userforms/thirdparty/jquery-validate/localization
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function( factory ) { | |
if ( typeof define === "function" && define.amd ) { | |
define( ["jquery", "../jquery.validate"], factory ); | |
} else { | |
factory( jQuery ); | |
} | |
}(function( $ ) { | |
/* | |
* Localized default methods for the jQuery validation plugin. | |
* Locale: NO | |
*/ | |
$.extend($.validator.methods, { | |
date: function(value, element) { | |
return this.optional(element) || /\d*\. \w*\. \d*/.test(value); | |
} | |
}); | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment