-
Notifications
You must be signed in to change notification settings - Fork 9
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
Throw an error for invalid date format #26
Conversation
Parsing of integers and floats
Integrated DateVal and updated error numbers
BasicVal email, url and date improvements
Changed error structure to use only "invalid"
Fixed check reuse bug and docs updates
Added parameters to errors
Fixed emitting from .multiple check
Replaced second existing_error argument with options
Fixed issue with null in one_of check
Thanks for finding this issue! This PR served as a great starting point and made me realise that a Happy to merge yours first onto |
@MarcusLongmuir The changes look good to me. You may proceed with the merging. |
When an invalid date format is passed to the validator, calling
get
returnsundefined
and if it is further passed to the functiondate_with_format_array
the following error occurs.I check if
format_array
is an array in the functiondate_with_format_array
first to prevent such problem.