From 74b94394ce1fce33243a1ccc81440f14f70ec8a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 25 Apr 2012 10:19:22 +0200 Subject: [PATCH] No need to construct RegExp twice --- js/tbl_change.js | 1 - 1 file changed, 1 deletion(-) diff --git a/js/tbl_change.js b/js/tbl_change.js index f6f96f68c8..adbb86156d 100644 --- a/js/tbl_change.js +++ b/js/tbl_change.js @@ -102,7 +102,6 @@ function isDate(val,tmstmp) var pos=2; dtexp=new RegExp(/^([0-9]{4})-(((01|03|05|07|08|10|12)-((0[0-9])|([1-2][0-9])|(3[0-1])))|((02|04|06|09|11)-((0[0-9])|([1-2][0-9])|30)))$/); if (val.length == 8) { - dtexp=new RegExp(/^([0-9]{2})-(((01|03|05|07|08|10|12)-((0[0-9])|([1-2][0-9])|(3[0-1])))|((02|04|06|09|11)-((0[0-9])|([1-2][0-9])|30)))$/); pos=0; } if (dtexp.test(val)) {