Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allows pattern definition to work #679

Merged

Conversation

roni-estein
Copy link
Contributor

Without this flag, json_encode will escape the slashes that the configuration. Consider the example from the iMask docs

var zipMask = IMask(element, {
  mask: '#00000',
  definitions: {
    // <any single char>: <same type as mask (RegExp, Function, etc.)>
    // defaults are '0', 'a', '*'
    '#': /[1-6]/
  }
});

Without this flag, json_encode will escape the slashes that the configuration. Consider the example from the iMask docs

```
var zipMask = IMask(element, {
  mask: '#00000',
  definitions: {
    // <any single char>: <same type as mask (RegExp, Function, etc.)>
    // defaults are '0', 'a', '*'
    '#': /[1-6]/
  }
});
```
@danharrin danharrin added the bug Something isn't working label Nov 3, 2021
@danharrin danharrin merged commit 712e684 into filamentphp:2.x Nov 3, 2021
@danharrin
Copy link
Member

Thanks!

@roni-estein roni-estein deleted the allow-custom-mask-definitions branch November 3, 2021 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants