Open alirezamirian opened 7 years ago
as RegExp json serialization is problematic, it's a good idea to let developer pass string representation of pattern regex.
RegExp
So from now the following maskDefinitions both work:
maskDefinitions
maskDefinitions = { a: /[a-z]/ } maskDefinitions = { a: '[a-z]' }
as
RegExp
json serialization is problematic, it's a good idea to let developer pass string representation of pattern regex.So from now the following
maskDefinitions
both work: