2
0
mirror of https://github.com/tenrok/maska.git synced 2026-05-15 11:59:38 +03:00

Code format

This commit is contained in:
Alexander Shabunevich
2023-01-21 00:25:31 +03:00
parent 1c7e5473f5
commit 4300883a93
+2 -3
View File
@@ -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) ?? ''
)
}