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

Issue with mask numbers for decimal places #6

Open
ajgaunt opened this issue Mar 10, 2022 · 1 comment
Open

Issue with mask numbers for decimal places #6

ajgaunt opened this issue Mar 10, 2022 · 1 comment

Comments

@ajgaunt
Copy link

ajgaunt commented Mar 10, 2022

It appears the mask numbers function only works for whole numbers, not numbers with decimal places. Can use the encrypt function but thought I'd just see if this was an item that could be updated.

@rungta
Copy link
Member

rungta commented Mar 10, 2022

That is correct @ajgaunt. The maskNumbers Twig filter is simply a wrapper around HashIds which says:

The library currently supports only positive numbers and zero.

You could try putting in a feature request with them, perhaps? I’ll update the documentation to mention this nuance on the plugin's page.

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

No branches or pull requests

2 participants