Skip to content

Commit 705137d

Browse files
authored
Update parse-date-regex.pl
1 parent fc9b12c commit 705137d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

parse-date-regex.pl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
# Written by André Kugland <kugland@gmail.com>
44

55
# This regex validates and parses dates in the format YYYY-MM-DD, taking into account
6-
# the number of days in each month and leap years. Leading zeros are discarded.
6+
# the number of days in each month and leap years. Leading zeros are discarded in the
7+
# captures.
78

89
$regex = qr/^
910
0{0,3}(?<year>

0 commit comments

Comments
 (0)