Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Conversation

alirezamirian
Copy link

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:

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:
```
maskDefinitions = {
    a: /[a-z]/
}
maskDefinitions = {
    a: '[a-z]'
}
 ```
# Conflicts:
#	dist/mask.js
#	dist/mask.min.js
#	src/mask.js
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant