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

Added support for lt and gt in isInt(). #588

Merged
merged 4 commits into from
Oct 17, 2016
Merged

Conversation

manchicken
Copy link

We want to be able to use lt and gt in the isInt() function. This is just adding that in. I added unit tests.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.001%) to 99.142% when pulling d4715dd on manchicken:master into 1b7f4a2 on chriso:master.

Copy link
Collaborator

@chriso chriso left a comment

Choose a reason for hiding this comment

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

Can you update the README?

@@ -4,6 +4,7 @@
([#585](https://github.com/chriso/validator.js/pull/585))
- Added support for greater or less than in `isFloat()`
([#544](https://github.com/chriso/validator.js/issues/544))
- Added support for `lt` and `gt` into `isInt()`.
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be the following:

- Added support for `lt` and `gt` into `isInt()`
  ([#588](https://github.com/chriso/validator.js/pull/588))

Copy link
Author

Choose a reason for hiding this comment

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

Done and done.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.001%) to 99.142% when pulling f6cc1aa on manchicken:master into 1b7f4a2 on chriso:master.

@manchicken
Copy link
Author

@chriso, I made those changes to the README.md, is there anything else outstanding on this PR?

@chriso
Copy link
Collaborator

chriso commented Oct 17, 2016

According to the diff, you've updated the CHANGELOG but not the README.

@manchicken
Copy link
Author

Sorry, didn't see that. On it.

@manchicken
Copy link
Author

@chriso: I think I got it.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.002%) to 98.838% when pulling e25c149 on manchicken:master into 61104b4 on chriso:master.

@@ -1,3 +1,9 @@
#### HEAD
- Added support for greater or less than in `isFloat()`
([#544](https://github.com/chriso/validator.js/issues/544))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove these two lines please. The isFloat() change was not part of this PR.

Copy link
Author

Choose a reason for hiding this comment

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

D'oh! Too much copy-and-paste in the merge conflict resolution. Done.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.002%) to 98.838% when pulling dd2f65a on manchicken:master into 61104b4 on chriso:master.

@chriso
Copy link
Collaborator

chriso commented Oct 17, 2016

Thanks.

@chriso chriso merged commit d2b9965 into validatorjs:master Oct 17, 2016
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.

4 participants