inputmask-core icon indicating copy to clipboard operation
inputmask-core copied to clipboard

Add optional character

Open rodrigowbazevedo opened this issue 7 years ago • 4 comments

Add support for optional character, just need to put an ? in the pattern after the character you want to be optional.

With this feature it's possible to create patterns like this (11) 1?1111-1111, this pattern solve the problem we have in Brazil creating mask for phone numbers.

This PR is built on top of PR #39

rodrigowbazevedo avatar Nov 16 '17 13:11 rodrigowbazevedo

Any plans for that feature? @insin

adiq avatar Apr 23 '19 10:04 adiq

Any plans for that feature?

digital-spectr avatar Apr 05 '20 09:04 digital-spectr

can we get this implemented or is this project dead?

g0shed avatar Apr 15 '21 10:04 g0shed

+1

natanaelsimoes avatar Sep 21 '21 06:09 natanaelsimoes