We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Since v13.11.0 isDate throws when passing a non-valid string with a format. v13.9.0 works wonders.
isDate
Examples
isDate('20', { format: 'DD/MM/YYYY' })
https://runkit.com/dackmin/64e4acf5889ae3000967d281
(working example with 13.9.0 is also in there)
Additional context Validator.js version: v13.11.0 Node.js version: v18.17.1 OS platform: MacOS 13.4.1
The text was updated successfully, but these errors were encountered:
@dackmin , you are very right. I think I have found the problem. I will be raising a pull request today that should fix the issue.
Sorry, something went wrong.
fix(isDate):breaks on 2 digit strings (validatorjs#2272)
5596b8f
No branches or pull requests
Describe the bug
Since v13.11.0
isDate
throws when passing a non-valid string with a format.v13.9.0 works wonders.
Examples
isDate('20', { format: 'DD/MM/YYYY' })
https://runkit.com/dackmin/64e4acf5889ae3000967d281
(working example with 13.9.0 is also in there)
Additional context
Validator.js version: v13.11.0
Node.js version: v18.17.1
OS platform: MacOS 13.4.1
The text was updated successfully, but these errors were encountered: