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

How to control symbol and words? #57

Open
D330 opened this issue Jun 16, 2018 · 2 comments
Open

How to control symbol and words? #57

D330 opened this issue Jun 16, 2018 · 2 comments

Comments

@D330
Copy link

D330 commented Jun 16, 2018

I need to control only letters and digits. Illegal characters is a bad solution for me.
Also i need to control words before chipping (disallow dubles)

@austin-kwong
Copy link

austin-kwong commented Jun 16, 2018

As mentioned previously, the correct solution is to implement NachoValidator.

Simply override isValid to return false when illegal characters are present. Override fixText to return a string that contains only legal characters and removes doubles.

@D330
Copy link
Author

D330 commented Jun 18, 2018

@augudyne but NachoValidator not working for every symbol

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

2 participants