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

MaskedFormatter.formatString works wrong for some inputs #11

Closed
OlegRy opened this issue Mar 16, 2017 · 2 comments
Closed

MaskedFormatter.formatString works wrong for some inputs #11

OlegRy opened this issue Mar 16, 2017 · 2 comments
Labels

Comments

@OlegRy
Copy link

OlegRy commented Mar 16, 2017

I use your library in project for phone mask. My mask is "+7 ### ### ##-##". So, there's a problem with mask. When I type number like "9998885566" and then try to get unmasked string via MaskedFormatter, all works fine and I get "9998885566". But if I type number like "9871234568" and then get unmasked string, the result is "981234568". As you can see, in unmasked string no "7" character. I think, the reason of that issue is that in mask I have "7" character and you store mask characters in list and compare each character from input with mask character without taking into account the positions.

@VicMikhailau
Copy link
Owner

Hello, OlegRy.

Thank you for your feedback!
Will be fixed as soon as possible.

Mixser added a commit to Mixser/MaskedEditText that referenced this issue Mar 22, 2017
VicMikhailau added a commit that referenced this issue Mar 23, 2017
Fixed  MaskedFormatter.formatString works wrong for some inputs #11 bug
@VicMikhailau
Copy link
Owner

Fixed in 2.0.2 library version.

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

No branches or pull requests

2 participants