mirror of
https://github.com/tenrok/maska.git
synced 2026-06-20 20:00:34 +03:00
Code format
This commit is contained in:
+2
-3
@@ -89,11 +89,10 @@ export class Mask {
|
|||||||
return mask(value)
|
return mask(value)
|
||||||
}
|
}
|
||||||
|
|
||||||
const last = this.process(value, mask.slice(-1).pop() ?? '', false)
|
const l = this.process(value, mask.slice(-1).pop() ?? '', false)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
mask.find((el) => this.process(value, el, false).length >= last.length) ??
|
mask.find((el) => this.process(value, el, false).length >= l.length) ?? ''
|
||||||
''
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user