Skip to content

Commit 7ed87d8

Browse files
authored
feat(mask): Transform unicode digits codepoint to ASCII numbers (#1907)
- Added support for Unicode digits in the mask input parser. - Updated relevant tests to cover Unicode digit scenarios. - Parser edge cases handled for better robustness. - Added more comprehensive test cases for various mask patterns.
1 parent e850c24 commit 7ed87d8

File tree

3 files changed

+602
-49
lines changed

3 files changed

+602
-49
lines changed

src/components/mask-input/mask-input-base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export abstract class IgcMaskInputBaseComponent extends IgcInputBaseComponent {
8888
if (isComposing) return;
8989
return this._updateInput('', {
9090
start: this._parser.getPreviousNonLiteralPosition(
91-
this._inputSelection.start
91+
this._inputSelection.start + 1
9292
),
9393
end,
9494
});

0 commit comments

Comments
 (0)