ngx-mask
ngx-mask copied to clipboard
fix(1532): When precision is not specified on "separator" mask error …
Include additional logic to check if separatorPrecision is Infinity or not before checking if > 0
PR Checklist
Please check if your PR fulfills the following requirements:
- [x] The commit message follows our guidelines: https://github.com/JsDaddy/ngx-mask/blob/develop/CONTRIBUTING.md#commit
- [x] Tests for the changes have been added (for bug fixes / features)
- [x] Docs have been added / updated (for bug fixes / features)
PR Type
What kind of change does this PR introduce?
- [x] Bugfix
- [ ] Feature
- [ ] Code style update (formatting, local variables)
- [ ] Refactoring (no functional changes, no api changes)
- [ ] Build related changes
- [ ] CI related changes
- [ ] Documentation content changes
- [ ] Other... Please describe:
What is the current behavior?
Issue Number: #1532
What is the new behavior?
Additonal logic check for separatorPrecision
Does this PR introduce a breaking change?
- [ ] Yes
- [x] No