UNPKG
vvv-mask
Version:
latest (1.0.1)
1.0.1
1.0.0
vvv-mask
/
tokens.js
8 lines
•
266 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
export
default
{
'#'
:
{
pattern:
/\d/
},
X:
{
pattern:
/
[
0
-9a-zA-Z
]
/
},
S:
{
pattern:
/
[
a-zA-Z
]
/
},
A:
{
pattern:
/
[
a-zA-Z
]
/
,
transform:
v
=>
v.toLocaleUpperCase()
},
a:
{
pattern:
/
[
a-zA-Z
]
/
,
transform:
v
=>
v.toLocaleLowerCase()
},
'!'
:
{
escape:
true
}, }
;