Skip to content

validate empty string #42

@MichaelIT

Description

@MichaelIT

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions