ngx-mask icon indicating copy to clipboard operation
ngx-mask copied to clipboard

repeat mask with single pattern

Open hochun836 opened this issue 4 years ago • 0 comments

🚀 feature request

👉 when using repeat mask, I want add some single pattern

case1

<input [(ngModel)]="vo.name1" name="name1" #name1="ngModel" mask="SS0000000000"> input: ab0123456789 output: ab0123456789 is the expected work

case2

<input [(ngModel)]="vo.name2" name="name2" #name2="ngModel" mask="SS0{10}"> input: ab0123456789 output: 0123456789 is not my expected work

👉 Describe the solution you'd like

I want the output of case2 like case1.

👉 Demo

stackblitz

Output

2021-02-08_121838

hochun836 avatar Feb 08 '21 04:02 hochun836