Closed dackmin closed 2 months ago
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
@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.
fixed with https://github.com/validatorjs/validator.js/commit/ff56dcf5ad16abc4127528eafae559ac716863fb
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