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

improvement: support string mask pattern in maskDefinitions #212

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

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