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
Hi, I have some issues with the .isValid() function. You can find 2 example below :
moment("xx-xx-2001",'DD-MM-YYY').isValid() => true moment("12-13-2001",['DD-MMM-YYY','DD-MM-YYY']).isValid() => true
These dates are clearly not valid but it still return true. Is it the wanted behaviour of the isValid() function?
The text was updated successfully, but these errors were encountered:
The second issue is fixed in #430, and I'll add tests for the first issue
Sorry, something went wrong.
Better checks for isValid in the parser #434 #409
ba1a71e
The commit above adds passing tests to fix this.
Thanks, it works perfectly now :)
This has been released with 1.7.1. #384
1.7.1
No branches or pull requests
Hi, I have some issues with the .isValid() function.
You can find 2 example below :
These dates are clearly not valid but it still return true.
Is it the wanted behaviour of the isValid() function?
The text was updated successfully, but these errors were encountered: