ngx-mask
ngx-mask copied to clipboard
Multiple leading zeros for negative numbers
Hey everyone, thought I should share that with you guys, and maybe we could find a solution to this.
🐞 bug report
Is this a regression?
Not sure
Description
When using allowNegativeNumbers
, it is allowed to enter multiple leading zeros, while it isn't working like that without the allowNegativeNumbers
attribute. This behavior is inconsistent.
🔬 Minimal Reproduction
https://stackblitz.com/edit/angular-ivy-yzwbzo?file=src/app/app.component.html🌍 Your Environment
Angular version: 12.1 ngx-mask version: 12.0
"@angular/animations": "^12.1.0",
"@angular/common": "^12.1.0",
"@angular/compiler": "^12.1.0",
"@angular/core": "^12.1.0",
"@angular/forms": "^12.1.0",
"@angular/platform-browser": "^12.1.0",
"@angular/platform-browser-dynamic": "^12.1.0",
"@angular/router": "^12.1.0",
"ngx-mask": "^12.0.0",
"rxjs": "^7.1.0",
"tslib": "^2.3.0",
"zone.js": "^0.11.4"