Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Allow options to be passed through to vanilla-masker #39

Open
kball opened this issue Oct 3, 2018 · 0 comments
Open

Allow options to be passed through to vanilla-masker #39

kball opened this issue Oct 3, 2018 · 0 comments

Comments

@kball
Copy link

kball commented Oct 3, 2018

There are a variety of configuration options available to both the toMoney and the toPattern methods in vanilla-masker that would be useful to expose. I'm thinking probably we simply extend the logic that looks at the value passed in, and if it is an object plucks off the value key as value and the rest as options.

I need this for a current client project so I will implement a fix and submit a PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant