Skip to content

Commit fc9b12c

Browse files
authored
Update README.md
1 parent e6b5ae1 commit fc9b12c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# parse-date-regex
22

33
This regex validates and parses dates in the format YYYY-MM-DD, taking into account
4-
the number of days in each month and leap years. Leading zeros are discarded.
4+
the number of days in each month and leap years. Leading zeros are discarded in the
5+
captures.
56

67
By removing the spaces and comments in the regex, it can be used in Javascript or any
78
other language that supports PCRE (Perl-compatible regular expressions), *e.g.*:

0 commit comments

Comments
 (0)