mirror of
https://github.com/tenrok/maska.git
synced 2026-06-17 19:21:21 +03:00
refactor!: change completed behavior for dynamic mask
This commit is contained in:
+1
-3
@@ -78,11 +78,9 @@ export class Mask {
|
||||
|
||||
if (typeof this.opts.mask === 'string') {
|
||||
return length >= this.opts.mask.length
|
||||
} else if (typeof this.opts.mask === 'function') {
|
||||
return length >= mask.length
|
||||
}
|
||||
|
||||
return this.opts.mask.filter((m) => length >= m.length).length === this.opts.mask.length
|
||||
return length >= mask.length
|
||||
}
|
||||
|
||||
private findMask (value: string): string | null {
|
||||
|
||||
Reference in New Issue
Block a user