Skip to content
This repository has been archived by the owner on Feb 10, 2019. It is now read-only.

added min and max validation [Fixes #90] #91

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

added min and max validation [Fixes #90] #91

wants to merge 2 commits into from

Conversation

gruberb
Copy link

@gruberb gruberb commented May 6, 2014

No description provided.

@@ -24,7 +24,7 @@
// HTML5-compatible validation pattern library that can be extended and/or overriden.
patternLibrary : { //** TODO: Test the new regex patterns. Should I apply these to the new input types?
// **TODO: password
phone: /([\+][0-9]{1,3}([ \.\-])?)?([\(][0-9]{1,6}[\)])?([0-9A-Za-z \.\-]{1,32})(([A-Za-z \:]{1,11})?[0-9]{1,4}?)/,
phone: /([\+][0-9]{1,3}([ \.\-])?)?([\(]{1}[0-9]{1,6}[\)])?([0-9A-Za-z \.\-]{1,32})(([A-Za-z \:]{1,11})?[0-9]{1,4}?)/,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

@gruberb
Copy link
Author

gruberb commented May 7, 2014

fixed the comments

@@ -154,10 +154,12 @@
rangeOverflow: validity.rangeOverflow || false,
rangeUnderflow: validity.rangeUnderflow || false,
stepMismatch: validity.stepMismatch || false,
tooLong: validity.tooLong || false,
rangeOverflow: validity.rangeOverflow || false,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These were already here. Now we have duplicates. );

@ericelliott
Copy link
Owner

Do we have unit tests for this?

@ericelliott ericelliott changed the title added min and max validation added min and max validation [Fixes #90] May 15, 2014
@ericelliott
Copy link
Owner

[#90]

@christianlent
Copy link
Collaborator

As soon as this pull request has unit tests, I would be more than happy to refactor this into the unified validator model from #87 . It would make it a bit cleaner (the min/max logic would be a little more contained). I definitely love the idea of h5Validate having this capability.

@ericelliott
Copy link
Owner

Any progress on this, guys?

@christianlent
Copy link
Collaborator

I really haven't looked at this since my last comment, but I'm confident that it would fit nicely into the new validator model in #87 . As soon as you've dealt with unified validators one way or another, I can look into this (including perhaps adding some unit tests?).

@ericelliott
Copy link
Owner

Honestly, I'm so buried in my current work, it may be a very long time before I have time to deal with it. Would you be interested in becoming the official maintainer of h5Validate?

Ideally, every commit will still go through the PR process, and somebody else should at least have the chance to pull down the PR, run the unit tests, and look at the code changes.

@christianlent
Copy link
Collaborator

Perhaps, or at least maybe just pick up the slack for as long as you're over-committed.

@ericelliott
Copy link
Owner

@christianclent Would you be interested in leading a rewrite project?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants