Closed kevinlaw91 closed 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]*$/} />
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
sorry just noticed there's typo while copying. invalid bug.
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