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

add isHash validator #711

Merged
merged 4 commits into from
Sep 9, 2017
Merged

add isHash validator #711

merged 4 commits into from
Sep 9, 2017

Conversation

linkinmedo
Copy link
Contributor

add a simple isHash validator fixing issue #606

README.md Outdated
@@ -97,6 +97,7 @@ validator | description
**isLowercase(str)** | check if the string is lowercase.
**isMACAddress(str)** | check if the string is a MAC address.
**isMD5(str)** | check if the string is a MD5 hash.
**isHash(str, algorithm)** | check if the string is a hash of type algorithm.<br/><br/>Algorithm is one of `['md4', 'md5', 'sha1', 'sha256', 'sha384', 'sha512', 'ripemd128', 'ripemd160', 'tiger128', 'tiger160', 'tiger192', 'crc32', 'crc32b']`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move this up? The validators are in alphabetical order, or at least they were at some point.

@chriso
Copy link
Collaborator

chriso commented Sep 8, 2017

Looking good 👍

@linkinmedo
Copy link
Contributor Author

@chriso done.

@chriso
Copy link
Collaborator

chriso commented Sep 9, 2017

Thanks!

@chriso chriso merged commit cf0010c into validatorjs:master Sep 9, 2017
@linkinmedo linkinmedo deleted the ishash 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.

2 participants