insin / inputmask-core

Standalone input mask implementation, independent of any GUI
MIT License
304 stars 52 forks source link

Cyrillic symbols support #36

Open cy6eria opened 7 years ago

cy6eria commented 7 years ago

Hey, I want to add cyrillic symbols support, but I have some questions.

Now I use custom formatCharacters for that and I have two variants.

I think it would be nice to add cyrillic symbols to a and A patterns. Thats very easy.

For example, I use this pattern /[А-Яа-яЁёA-Za-z]/. Guys from another cultures can add some additional symbols in it.

yuritoledo commented 6 years ago

hello @cy6eria you use pattern={/[А-Яа-яЁёA-Za-z]/} ? (if react)

cy6eria commented 6 years ago

@yuritoledo hello. Yes, /[А-Яа-яЁёA-Za-z]/ for cyrillic and latin. /[А-Яа-яЁё]/ only for cyrillic.

yuritoledo commented 6 years ago

@cy6eria thank you :)