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:
+2
-1
@@ -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'
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user