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

allow custom escape character

This commit is contained in:
Dan Wilson
2023-04-18 14:00:50 -06:00
parent e965d15c81
commit e078efd695
4 changed files with 53 additions and 2 deletions
+2 -1
View File
@@ -46,7 +46,8 @@ const parseTokens = (value: string): MaskTokens => {
pattern: new RegExp(parts[1]),
optional: parts[2] === 'optional',
multiple: parts[2] === 'multiple',
repeated: parts[2] === 'repeated'
repeated: parts[2] === 'repeated',
escape: parts[2] === 'escape'
}
})