소스 검색

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}$/;