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

Mask with literal character #31

Open
ReS4 opened this issue Jun 24, 2023 · 3 comments
Open

Mask with literal character #31

ReS4 opened this issue Jun 24, 2023 · 3 comments

Comments

@ReS4
Copy link

ReS4 commented Jun 24, 2023

Hi.
How can I set the mask contain "L" or "U" character at the beginning or middle of string?
for example, I have an EditText that should accept only "L####-##". User should input something like "L1234-56", but currently it takes any lower case character at the beginning of the EditText (e.g c1234-56 , n1234-56, l1234-56)

@VicMikhailau
Copy link
Owner

Hi,

For create your mask you need to use following keys:

ANYTHING KEY = *
DIGIT KEY = #
UPPERCASE KEY = U
LOWERCASE KEY = L
ALPHA NUMERIC KEY = A
CHARACTER KEY = ?
HEX KEY = H

U and L reserved to uppercase and lowercase symbols. I can advise to modify the current MaskedEditText realization to your purposes.

Thanks.

@ReS4
Copy link
Author

ReS4 commented Jun 24, 2023

Is there any way to set the mask as something like \L####-## or {L}####-# ?
This can be an improvement.

@VicMikhailau
Copy link
Owner

I think yeas.
Please check the code: places where used these keys.

Unfortunately, there is no way to devote much time to the project. Please feel free to Fork the project and add Pull requests. Thanks a lot!

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