vuejs-tips / vue-the-mask

Tiny (<2k gzipped) and dependency free mask input for Vue.js
https://vuejs-tips.github.io/vue-the-mask/
1.72k stars 212 forks source link

Pattern range #202

Open CLMokbel opened 1 year ago

CLMokbel commented 1 year ago

I'm trying to make use of the pattern property on an input field. Unfortunately the pattern seems to only work strictly with given pattern and doesn't allow for a range. Is there a work around for this?

Initial number pattern is '#.###' but also want to give users the option to type in numbers '##.###'

alitons commented 5 months ago

You can pass an array ['#.###', '##.###', '###.###, ...]