angular-ui / ui-mask

Mask on an input field so the user can only type pre-determined pattern
https://htmlpreview.github.io/?https://github.com/angular-ui/ui-mask/master/demo/index.html
MIT License
391 stars 258 forks source link

Can't make the first character optional #184

Open OlgerCA opened 7 years ago

OlgerCA commented 7 years ago

Not sure if I am missing anything. Please try the following mask at the demo page: "?A9". This mask should accept either '5' or 'a5' as valid inputs.

antgonzales commented 7 years ago

+1

Here's an example on another project: https://github.com/angular-ui/ui-utils/pull/21