瀏覽代碼

auto update script executed

Toby Chui 1 年之前
父節點
當前提交
68a37f32af
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      web/snippet/advanceStatsOprs.html

+ 4 - 0
web/snippet/advanceStatsOprs.html

@@ -95,6 +95,10 @@
             loadDateRange();
 
             function isValidDateFormat(dateString) {
+                if (dateString.indexOf("_") >= 0){
+                    //Replace all the _ to -
+                    dateString = dateString.split("_").join("-");
+                }
                 // Create a regular expression pattern for the yyyy-mm-dd format
                 const pattern = /^\d{4}-\d{2}-\d{2}$/;