Skip to content
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

Invalide date check in validators.js #581

Merged
merged 1 commit into from
Feb 7, 2019

Conversation

SuPenguin
Copy link
Contributor

@SuPenguin SuPenguin commented Jan 28, 2019

  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
    bug fix

  • What is the current behavior? (You can also link to an open issue here)
    new Date('wrong string') return a string Invalid Date which is not usable with boolean negation.

  • What is the new behavior (if this is a feature change)?
    The check will use isNan to the getDate() function instead

  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
    No

new Date('wrong string') return a string 'Invalid Date' which is not usable with boolean negation.
@SuPenguin SuPenguin changed the title Bug fix validators.js Bug fix date in validators.js Jan 28, 2019
@SuPenguin SuPenguin changed the title Bug fix date in validators.js Invalide date check in validators.js Jan 28, 2019
@zoul0813 zoul0813 merged commit 661ee8f into vue-generators:master Feb 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants