Skip to content

Commit

Permalink
fix(#1071): fix 1071
Browse files Browse the repository at this point in the history
  • Loading branch information
andriikamaldinov1 committed Jun 5, 2023
1 parent e164f49 commit 49e9454
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions projects/ngx-mask-lib/src/lib/ngx-mask.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -698,10 +698,11 @@ export class NgxMaskDirective implements ControlValueAccessor, OnChanges, Valida

private _setMask() {
this._maskExpressionArray.some((mask): boolean | void => {
const specialCharacters = ['-', '/', '+', '{', '('];
const specialChart: boolean = mask
.split('')
.some((char) => this._maskService.specialCharacters.includes(char));
if (specialChart || mask.includes('{')) {
.some((char) => specialCharacters.includes(char));
if (specialChart) {
const test =
this._maskService.removeMask(this._inputValue)?.length <=
this._maskService.removeMask(mask)?.length;
Expand Down

0 comments on commit 49e9454

Please sign in to comment.