2
0
mirror of https://github.com/tenrok/maska.git synced 2026-06-11 18:02:27 +03:00

fix!: change eager mask behavior

Now eager mask take into account a hardcoded symbols
This commit is contained in:
Alexander Shabunevich
2024-04-06 10:13:31 +03:00
parent dee8f2eaf2
commit ce1243abcd
2 changed files with 47 additions and 29 deletions
+5
View File
@@ -217,6 +217,11 @@ export class Mask {
) {
if (masked) {
result[method](mask.charAt(m))
if (value.charAt(v) === mask.charAt(m)) {
m += offset
v += offset
continue
}
} else if (mask.charAt(m) === value.charAt(v)) {
v += offset
}