Skip to content

add decimal options to isCurrency #713

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

Merged
merged 3 commits into from
Sep 9, 2017

Conversation

linkinmedo
Copy link
Contributor

this fixes #651 , please take a look at it and if you like it I will create tests and add it to read me.

Partially verified

This commit is signed with the committer’s verified signature.
ljharb’s contribution has been verified via GPG key.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
@regularmike
Copy link

regularmike commented Sep 7, 2017

This is great. I've been meaning to get around to this for a while since I was the one who contributed the original function that lacked support for the less-common numbers of decimal places.

@chriso
Copy link
Collaborator

chriso commented Sep 8, 2017

Some tests would be great, thanks.

Verified

This commit was signed with the committer’s verified signature.
ljharb Jordan Harband

Verified

This commit was signed with the committer’s verified signature.
ljharb Jordan Harband
@linkinmedo
Copy link
Contributor Author

@chriso Done.

@chriso
Copy link
Collaborator

chriso commented Sep 9, 2017

Thanks!

@chriso chriso merged commit 19a004f into validatorjs:master Sep 9, 2017
@linkinmedo linkinmedo deleted the currency-decimal branch September 13, 2017 09:45
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

Successfully merging this pull request may close these issues.

Currency validator rule
3 participants