Skip to content

Build a mask for accented characters #262

@alexmachina

Description

@alexmachina

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions