question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

allow data-parsley-length to equal exact length

See original GitHub issue

this would helpful for me, if i could to like this data-parsley-length="10", corresponding message should be changed (This value length is invalid. It should be between %s and %s characters long. without between), but of course should keep both messages

i know, that i can create my validation, but i think it should be possible with build-in length validation

Issue Analytics

  • State:open
  • Created 9 years ago
  • Comments:6

github_iconTop GitHub Comments

3reactions
hansondrcommented, Apr 13, 2015

@marcandre this is slightly off-topic, but how would you feel about having the length validator match exact length and create a new validator like length-range which would get length’s current behavior?

Edit: Submitted a PR to ValidatorJS which demonstrates this

0reactions
marcandrecommented, Jan 29, 2015

It’s true that this already exists for type, so could be made more generic.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The ultimate documentation - Parsley
Validates that a given string length is between some minimum and maximum value. Specifying both HTML5 attributes minlength and maxlength will enable this ......
Read more >
size command in form parsley.js - Stack Overflow
The size attribute you refers to is perfectly working. It affects the input width (the box, not its content). Try putting 10 or...
Read more >
Parsley.js Documentation & API - GitHub Pages
Parsley is a dead simple javascript form validation, powerful and UX aware. ... Min Length, parsley-minlength="6", Validates that the length of a string...
Read more >
Input Pattern: Use It To Add Basic Data Validation In HTML5 »
The pattern attribute of the <input> element allows you to add basic data ... example [a-zA-Z0-9]+ is a pattern that matches against a...
Read more >
Food Portions: Choosing Just Enough for You | NIDDK
Depending on how much you choose to eat, your portion size may or may not match the serving size. To see how many...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found