You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not totally sure these are incorrect.... I mean, they can be parsed, and to a human eye these are readable dates...
If this is only supposed to accept ISO8601 dates, then slashes are not allowed at all. But if both are allowed, it makes sense to allow a mix of the two...
Incorrect date formats like YYYY-MM/DD and YYYY/MM-DD which contains both hyphen
-
and forward slash/
are being wrongly validated astrue
.Expected Behavior
I think in such cases, isDate() function should return
false
Additional context
Validator.js version:^13.1.1
Node.js version:v12.16.1
OS platform: [windows]
The text was updated successfully, but these errors were encountered: