igorescobar / jQuery-Mask-Plugin

A jQuery Plugin to make masks on form fields and HTML elements.
http://igorescobar.github.io/jQuery-Mask-Plugin/
Other
4.77k stars 1.42k forks source link

Inverse true with special caracter broke with - and / #718

Open Shnoulle opened 5 years ago

Shnoulle commented 5 years ago

Browsers and device : Firefox on desktop and Chromium on desktop jsfiddle : https://jsfiddle.net/0uytfzmn/3/ : try to enter 123456 with keyboard (other fiddle without bracket)

description I don't need this currently, but potential issue with some special character and inverse. Unsure because need more test, but with 3 special character and numeric optionnal value : inverse broke at the 3rd special character (hard to explain … can make a video but …).

This mask broke :

$("#reverse").mask('999/99 (99)',{"reverse":1});
$("#reverse2").mask('999-99 (99)',{"reverse":1});
$("#reverse3").mask('(999) 99 (99)',{"reverse":1});
$("#reverse4").mask('9 999.9/999',{"reverse":1});

Is this plugin helping you out? Buy me a beer and cheers! :beer:

Not currently, but when my plugin is out, for sure.