Inputmask
Inputmask copied to clipboard
Lookaheads are not working in the inputmask?
Hello!
The following mask is not working correctly:
Inputmask({
regex: "^(0|(?!0+$)[\dA-Z]+)$",
autoUnmask: false
}).mask(selector)
It autocompletes the input with non-editable zero. The idea behind this regex is that the field can contain a single 0 or a sequence of digits and capital letters but not a sequence of zeros only.
Does this problem occur because of the lookahead in the regexp and if so, how can it be fixed?
Chrome, Mozilla Inputmask version 5.0.6
Thank you!
@Granada2013,
A lookahead is not supported. See #1873 for some more info.