Inputmask icon indicating copy to clipboard operation
Inputmask copied to clipboard

Lookaheads are not working in the inputmask?

Open Granada2013 opened this issue 4 years ago • 1 comments

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 avatar Aug 18 '21 11:08 Granada2013

@Granada2013,

A lookahead is not supported. See #1873 for some more info.

RobinHerbots avatar Aug 19 '21 15:08 RobinHerbots