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

String min and max length #47

Open
qrpike opened this issue Aug 10, 2016 · 3 comments
Open

String min and max length #47

qrpike opened this issue Aug 10, 2016 · 3 comments

Comments

@qrpike
Copy link
Contributor

qrpike commented Aug 10, 2016

This is one of the most popular use cases to make sure people dont put names, etc. as an empty string or 1 character.

eg:

{
    name: {
        isRequired: true,
        minLength: 3,
        maxLength: 100
    }
}

Thanks,

@gchauvet
Copy link
Collaborator

You case use a regular expression for that :

/.{3,100}/g

@qrpike
Copy link
Contributor Author

qrpike commented Jan 17, 2017

Any news on this? It says its possible using min and max but still not working for me

Thanks,

@kimgysen
Copy link

kimgysen commented Jun 28, 2017

Using max only also doesn't work for me, as in:

{ fbName: { isRequired: true, max: 50 } }

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

No branches or pull requests

3 participants