From 0977002acccdef3f9f22e6d8111b09649735f699 Mon Sep 17 00:00:00 2001 From: Guy Van Bael Date: Mon, 3 Dec 2018 09:30:11 +0100 Subject: [PATCH] changes regex for de and nl so dates validate correctly --- client/thirdparty/jquery-validate/localization/methods_de.js | 2 +- .../thirdparty/jquery-validate/localization/methods_de.min.js | 2 +- client/thirdparty/jquery-validate/localization/methods_nl.js | 2 +- .../thirdparty/jquery-validate/localization/methods_nl.min.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/thirdparty/jquery-validate/localization/methods_de.js b/client/thirdparty/jquery-validate/localization/methods_de.js index 470133e..4e9980d 100755 --- a/client/thirdparty/jquery-validate/localization/methods_de.js +++ b/client/thirdparty/jquery-validate/localization/methods_de.js @@ -12,7 +12,7 @@ */ $.extend($.validator.methods, { date: function(value, element) { - return this.optional(element) || /^\d\d?\.\d\d?\.\d\d\d?\d?$/.test(value); + return this.optional(element) || /^[\d]{1,4}\-[0-1][0-9]\-[0-3][0-9]?$/.test(value); }, number: function(value, element) { return this.optional(element) || /^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(value); diff --git a/client/thirdparty/jquery-validate/localization/methods_de.min.js b/client/thirdparty/jquery-validate/localization/methods_de.min.js index 0cfea5e..4c64e3e 100755 --- a/client/thirdparty/jquery-validate/localization/methods_de.min.js +++ b/client/thirdparty/jquery-validate/localization/methods_de.min.js @@ -1,4 +1,4 @@ /*! jQuery Validation Plugin - v1.13.1 - 10/14/2014 * http://jqueryvalidation.org/ * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ -!function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){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)}})}); \ No newline at end of file +!function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.methods,{date:function(a,b){return this.optional(b)||/^[\d]{1,4}\-[0-1][0-9]\-[0-3][0-9]?$/.test(a)},number:function(a,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(a)}})}); \ No newline at end of file diff --git a/client/thirdparty/jquery-validate/localization/methods_nl.js b/client/thirdparty/jquery-validate/localization/methods_nl.js index 91e0d8c..d033509 100755 --- a/client/thirdparty/jquery-validate/localization/methods_nl.js +++ b/client/thirdparty/jquery-validate/localization/methods_nl.js @@ -12,7 +12,7 @@ */ $.extend($.validator.methods, { date: function(value, element) { - return this.optional(element) || /^\d\d?[\.\/\-]\d\d?[\.\/\-]\d\d\d?\d?$/.test(value); + return this.optional(element) || /^[\d]{1,4}\-[0-1][0-9]\-[0-3][0-9]?$/.test(value); } }); diff --git a/client/thirdparty/jquery-validate/localization/methods_nl.min.js b/client/thirdparty/jquery-validate/localization/methods_nl.min.js index b3fa94a..f527c37 100755 --- a/client/thirdparty/jquery-validate/localization/methods_nl.min.js +++ b/client/thirdparty/jquery-validate/localization/methods_nl.min.js @@ -1,4 +1,4 @@ /*! jQuery Validation Plugin - v1.13.1 - 10/14/2014 * http://jqueryvalidation.org/ * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ -!function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.methods,{date:function(a,b){return this.optional(b)||/^\d\d?[\.\/\-]\d\d?[\.\/\-]\d\d\d?\d?$/.test(a)}})}); \ No newline at end of file +!function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.methods,{date:function(a,b){return this.optional(b)||/^[\d]{1,4}\-[0-1][0-9]\-[0-3][0-9]?$/.test(a)}})}); \ No newline at end of file