react-native-mask-text
react-native-mask-text copied to clipboard
Build a mask for accented characters
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.