-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(isISO8601): Add new option to isISO8601 that checks if date and time are strictly separated by a T
#1486
feat(isISO8601): Add new option to isISO8601 that checks if date and time are strictly separated by a T
#1486
Conversation
T
Codecov Report
@@ Coverage Diff @@
## master #1486 +/- ##
=======================================
Coverage 99.92% 99.92%
=======================================
Files 96 96
Lines 1286 1287 +1
=======================================
+ Hits 1285 1286 +1
Misses 1 1
Continue to review full report at Codecov.
|
Any chance of this seeing a review anytime soon? |
It has been 22 days since I submitted this Pr -- have i done something incorrectly? I've seen several other PRs get reviewed that were submitted after this one. |
@brostone51 -- sorry for the delay on reviewing this, on it now. |
…into is-iso8601-strict-separator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for your contribution! 🎉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ! Great work !
As per the Wikipedia entry for ISO8601, the
T
that separates date and time is required. However, separating date and time by another character (such as whitespace,\s
, in the current regular expression) is allowed by RFC 3339.In order to not break any existing dependent code, I have added a new option to
isISO8601
that allows the user to passstrictSeparator = true
in the options. This would validate the date time string to always have the date and time separated by the literalT
.Checklist