ngx-mask
ngx-mask copied to clipboard
NgxMaskPipe keeps previous configs when transform() called
🐞 bug report
Description
when you call transform() method of NgxMaskPipe with some configs, this configs affects on another transform() method call without/with configs.
🔬 Minimal Reproduction
console.log(this._mask.transform('55555', '00 (000)', { suffix: ' DDD' })); // 55 (555) DDD
console.log(this._mask.transform('55555', '00 (000)', { prefix: 'DDD ' })); // DDD 55 (555) DDD
https://stackblitz.com/edit/stackblitz-starters-udi4kf?file=src%2Fmain.ts
🌍 Your Environment
You can find it in stackblitz