insin / inputmask-core

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

Add optional character #40

Open rodrigowbazevedo opened 6 years ago

rodrigowbazevedo commented 6 years ago

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

adiq commented 5 years ago

Any plans for that feature? @insin

digital-spectr commented 4 years ago

Any plans for that feature?

g0shed commented 3 years ago

can we get this implemented or is this project dead?

natanaelsimoes commented 2 years ago

+1