回答編集履歴
1
update
test
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
let reg = /^(?:(?!(?:[02468][1235679]|[13579][01345789])00[年\-/]0?2[月/\-](?:29|30)日?))(?:(?![0-9]{2}(?:[02468][1235679]|[13579][01345789])[年\-/]0?2[月/\-](?:29|30)日?))(?:(?![0-9]{4}[年\-/](?:0?2|0?4|0?6|0?9|11)[月/\-]31日?))([0-9]{4})[年\-/](0?[1-9]|1[0-2])[月/\-](0?[1-9]|[12][0-9]|3[01])日?$/;
|
8
8
|
|
9
|
-
let
|
9
|
+
let n;
|
10
10
|
|
11
11
|
|
12
12
|
|