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

Added support for RegularExpression, MaxLength, MinLength and FileExtensions attributes #17

Merged
merged 3 commits into from
Jun 8, 2015

Conversation

Zhaph
Copy link

@Zhaph Zhaph commented Jun 5, 2015

I noticed that the RegularExpression and FileExtension attributes aren't rendered correctly to support the out-of-the box validation methods in jV's additional-methods.js so I've added support for those.

I've also updated the Length support to also handle MinLength and MaxLength now that MVC 5.2.3 supports those attributes as well.

Tests and Demo's have also been updated (demo site in a separate commit).

Also noticed that the EqualTo test case was failing as you were no longer checking the custom error message.

I only updated the Demo & Test projects to MVC 5.2.3 as the core project didn't really need the additional dependency.

Zhaph added 3 commits June 5, 2015 10:46
…ension attributes to use the methods in jV Additional-Methods.

Brought Test Project up to MVC 5.2.3 (to support MinLength, MaxLength) and added binding redirects to support this.

TODO: Update Demo Project.
…sions attributes.

Updated jVUNDemo to MVC 5.2.3 to use the adaptors in there for the attributes.
@Zhaph Zhaph mentioned this pull request Jun 5, 2015
@johnnyreilly
Copy link
Owner

Cool - I'll try and take a look next week when I'm back near a computer. Ping me if I forget!

@johnnyreilly
Copy link
Owner

This is a really high quality pull request @Zhaph - thanks so much! Merged with pleasure.

johnnyreilly added a commit that referenced this pull request Jun 8, 2015
Added support for RegularExpression, MaxLength, MinLength and FileExtensions attributes
@johnnyreilly johnnyreilly merged commit 7a6349c into johnnyreilly:master Jun 8, 2015
@johnnyreilly
Copy link
Owner

I've fixed up a couple of typos in the text, published to NuGet and given you a credit in the change log and the docs.

Thanks again for the pull request Ben. It seems like we work pretty near to each other - I'm based in St James's and it sounds like you're pretty close by?

@Zhaph
Copy link
Author

Zhaph commented Jun 8, 2015

No worries - and well spotted on my copy/pasted typos :S Glad to help, and thanks for all the work you'd put into this to start with.

Based over in Shoreditch at the moment, so fairly close as these things go.

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

Successfully merging this pull request may close these issues.

None yet

2 participants