react-native-mask-text icon indicating copy to clipboard operation
react-native-mask-text copied to clipboard

Build a mask for accented characters

Open alexmachina opened this issue 1 year ago • 0 comments

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 avatar Jul 18 '23 18:07 alexmachina