silverstripe-comments/thirdparty/jquery-validate/localization/methods_fi.js
Damian Mooyman 468df23801 Nested comments proof of concept
Update theme to new look and feel
Add jquery-validate 1.3.1 (w/ nz dst patch)
2015-04-21 11:12:42 +12:00

22 lines
533 B
JavaScript

(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: FI
*/
$.extend($.validator.methods, {
date: function(value, element) {
return this.optional(element) || /^\d{1,2}\.\d{1,2}\.\d{4}$/.test(value);
},
number: function(value, element) {
return this.optional(element) || /^-?(?:\d+)(?:,\d+)?$/.test(value);
}
});
}));