-
-
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(isDate): Disallow mismatching length for isDate #2056
base: master
Are you sure you want to change the base?
feat(isDate): Disallow mismatching length for isDate #2056
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2056 +/- ##
==========================================
- Coverage 99.95% 99.95% -0.01%
==========================================
Files 107 107
Lines 2454 2450 -4
Branches 619 620 +1
==========================================
- Hits 2453 2449 -4
Partials 1 1 ☔ View full report in Codecov by Sentry. |
In my opinion, that option should be renamed to |
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.
The comment from @braaar is valid, but for a future PR. This PR looks good to me
Perhaps it's reasonable to leave behind a TODO-comment in that case? |
That might be good. |
@WikiRik any progress on this? Do we need another review? I now want to include the same thing in another project, so the topic is on the top of my mind again. |
That's up to @profnandaa |
New PR #2481 with resolved conflict. |
Before this, if I provided a format to the
isDate
function, it was never checked that the format exactly matches - including the length of the date. I could have provided any possible date as long as I only included valid delimiters.Important: I only changed this for
strictMode
because I think there it should 100% be checked, but maybe there are cases (withoutstrictMode
) where it is okay? If you want me to remove thestrictMode
condition, just let me know.Checklist