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

Build a mask for accented characters #262

Open
alexmachina opened this issue Jul 18, 2023 · 0 comments
Open

Build a mask for accented characters #262

alexmachina opened this issue Jul 18, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@alexmachina
Copy link

Describe the Feature

Be able to declare an accent letter as part of the mask.

Possible Implementations

implementing another regex at ./toPart.js?

else if (
...
      (output[index] === ALPHANUM &&
        values[charCounter].match(/[0-9a-zA-Z]/)) ||
     (output[index] === ACCENTALPHANUM && values[charCounter].match(/[\wÀ-ÖØ-öø-ÿ0-9]/) ||
        values[charCounter].match(/[0-9a-zA-Z]/)) ||
      (output[index] === HOURS && values[charCounter].match(/[0-23]/)) ||
...

Related Issues

Accented characters are very common on latin languages. Without this feature, support for masks containing latin words(like first names, last names, and more) is not possible to achieve.

@alexmachina alexmachina added the enhancement New feature or request label Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant