Skip to content

add more options in isLength - feature request #1937

@guicompeng

Description

@guicompeng

Currently the options for isLength are min and max only.
I believe there could be more options. I'm needing the field size to be exactly 11 or 14 or 16.
For now I'm using min 11 and max 16 but in my program the length values (12, 13, 15) should not be accepted.
a new option can be:

exact: {11, 14, 16} or
size: {11, 14, 16}

Do you think this change adding more options would be a good thing?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions