mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
6fcc040485
jQuery 3.3.1 is still the latest release
4 lines
571 B
JavaScript
4 lines
571 B
JavaScript
/*! jQuery Validation Plugin - v1.19.0 - 11/28/2018
|
|
* https://jqueryvalidation.org/
|
|
* Copyright (c) 2018 Jörn Zaefferer; Licensed MIT */
|
|
!function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):"object"==typeof module&&module.exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){return a.extend(a.validator.methods,{date:function(a,b){return this.optional(b)||/^\d\d?[\.\/\-]\d\d?[\.\/\-]\d\d\d?\d?$/.test(a)},number:function(a,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(a)}}),a}); |