Skip to content

Commit 283de39

Browse files
authored
Update README.md
1 parent 4a180a2 commit 283de39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +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 in the
5-
captures.
4+
leap years and the number of days in each month. Leading zeros are discarded in the
5+
captures. Accepts dates with year in range \[0, 9999\].
66

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

0 commit comments

Comments
 (0)