uNmAnNeR / imaskjs

vanilla javascript input mask
https://imask.js.org
MIT License
4.96k stars 258 forks source link

^ is mistakenly allowed in react-imask #1057

Closed kevinlaw91 closed 4 months ago

kevinlaw91 commented 4 months ago

Describe the bug In react-imask, ^ is mistakenly allowed even if using this regexp as mask <IMaskInput mask={/^[a-zA-z0-9]*$/} />

To Reproduce https://codesandbox.io/p/sandbox/divine-snow-zlrqz9?file=%2Fsrc%2FApp.js%3A9%2C2

Expected behavior character ^ shouldn't be allowed at all

Environment: react-imask 7.6.1

kevinlaw91 commented 4 months ago

sorry just noticed there's typo while copying. invalid bug.