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

text in UITextField can be prepared based on preparators before validation #64

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lukaszosiennik
Copy link

Preparator Feature, it could be useful I think. How it works? Before validation of UITextField, text could be additionally prepared, e.g. text trimming could be performed (preparator implemented in this PR), any prefix text could be added before original text, some chars could be removed from the original text, and so on. I hope you will find that useful.

@jpotts18
Copy link
Collaborator

jpotts18 commented Feb 4, 2016

I like this idea and I can see it being useful. I saw validator.js is doing something similar but they are calling them sanitizers. I think we would need the following before this becomes a feature.

  1. Tests
  2. Update to the Readme
  3. More Examples of why this is useful. I think implementing a couple form the [Sanitizers] section could help people understand the purpose.

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

Successfully merging this pull request may close these issues.

None yet

2 participants