Skip to content

Instantly share code, notes, and snippets.

@mmichelli
Created September 17, 2014 09:08
Show Gist options
  • Save mmichelli/43bce54802ac8b008e17 to your computer and use it in GitHub Desktop.
Save mmichelli/43bce54802ac8b008e17 to your computer and use it in GitHub Desktop.
userforms/thirdparty/jquery-validate/localization
(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