mirror of
https://github.com/tenrok/maska.git
synced 2026-05-15 11:59:38 +03:00
Code format
This commit is contained in:
+2
-3
@@ -89,11 +89,10 @@ export class Mask {
|
||||
return mask(value)
|
||||
}
|
||||
|
||||
const last = this.process(value, mask.slice(-1).pop() ?? '', false)
|
||||
const l = this.process(value, mask.slice(-1).pop() ?? '', false)
|
||||
|
||||
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