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 need to validate a value not a empty string,but it is no required,can somebody tell me how to do that.
{ meeting_register_begin:{ isRequired: false, isDate:true, not:/^$/ } }
I try to use not , but it does not work.I want to do that because it will cause error in database query when this datetime value is empty string.
not
The text was updated successfully, but these errors were encountered:
did you try "notRegex" ?
{ meeting_register_begin:{ isRequired: false, isDate:true, notRegex:/^$/ } }
Sorry, something went wrong.
@gchauvet tks u reply
i try to change my validation from
to
meeting_register_begin:{ isRequired: false, isDate:true, notRegex:/^$/ }
but i still get meeting_register_begin in my logic part of my code.And it was still a empty string.
meeting_register_begin
Sorry for my lack of time, I take a look ASAP
No branches or pull requests
hi,I need to validate a value not a empty string,but it is no required,can somebody tell me how to do that.
{ meeting_register_begin:{ isRequired: false, isDate:true, not:/^$/ } }
I try to use
not
, but it does not work.I want to do that because it will cause error in database query when this datetime value is empty string.The text was updated successfully, but these errors were encountered: