uNmAnNeR / imaskjs

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

Make parse/format required if custom pattern is used. #1032

Closed MrMarble closed 7 months ago

MrMarble commented 7 months ago

Hi, just wanted to contribute to your amazing repo! This change fixes #973

If the user provides the default pattern, the type check is ignored

Here's a screenshot of vscode showing the different cases, default pattern, custom pattern with error, custom parse without error and custom pattern with format and parse without error imagen

uNmAnNeR commented 7 months ago

@MrMarble thank you!