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

Language definition for length validation #52

Closed
icex opened this issue Jan 23, 2014 · 3 comments
Closed

Language definition for length validation #52

icex opened this issue Jan 23, 2014 · 3 comments

Comments

@icex
Copy link

icex commented Jan 23, 2014

Length validation returns "must be longer.." even if the value is shorter. Sorry I don't have the time to add a pull request, here's my fix:

Replaced
'length' => "must be longer than %d",
with
'length' => "length must be between %d and %d",

@vlucas
Copy link
Owner

vlucas commented Jan 23, 2014

Use lengthBetween for that :)

@willishq
Copy link
Contributor

Maybe change to maxLength / minLength / lengthBetween?

On 23 Jan 2014, at 16:21, Vance Lucas notifications@github.com wrote:

Use lengthBetween for that :)


Reply to this email directly or view it on GitHub.

@icex
Copy link
Author

icex commented Jan 23, 2014

Use lengthBetween for that :)

Yeah, that worked. I didn't see it and I was using just 'lenght'. Guess I've been coding for too long, need to sleep :)

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

4 participants