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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user