Skip to content

Commit e6b5ae1

Browse files
committed
...
1 parent 3177175 commit e6b5ae1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

parse-date-regex.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
-0?(?<day>
2020
(?<=0)[1-9]| # Day 1-9 (any month)
2121
(?<=-)(?:1\d|2[0-8])| # Day 10-28 (any month)
22-
(?<!02-)(?:29|30)| # 29-30 (all months except February)
23-
(?<=0[13578]-|1[02]-)31| # 31 (months 1, 3, 5, 7, 8, 10, 12)
22+
(?<!02-)(?:29|30)| # Day 29-30 (all months except February)
23+
(?<=0[13578]-|1[02]-)31| # Day 31 (months 1, 3, 5, 7, 8, 10, 12)
2424
(?<=
2525
(?:[02468][048]|[13579][26])00-02-| # Only for years divisible by 400,
2626
\d\d(?:0[48]|[2468][048]|[13579][26])-02- # or years divisible by 4 but not by 100,

0 commit comments

Comments
 (0)