Open guredd opened 4 years ago
Let's use simple regex with optional group as suffix:
<script> $(document).ready(function() { $("#id").inputmask({ regex: '\\d(ab)?' }).val('1ab'); }); </script>
As a result input get's value 1, not 1ab as expected. ab is truncated for some reasons.
1
1ab
ab
@guredd ,
True, I will check on this.
Let's use simple regex with optional group as suffix:
As a result input get's value
1
, not1ab
as expected.ab
is truncated for some reasons.