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

Hotfix/fix negative or not parsable limit bug #24

Conversation

idanto
Copy link

@idanto idanto commented Aug 16, 2016

Fix two bugs that related to the limit parameters:

  1. when negative limit is given the calculation of the offset/skip was happening before changing the limit to zero
  2. there was no default for unparsable limit parameters - add zero as default.

In addition I added new tests that will cover all the edge cases of limit and page.

@niftylettuce niftylettuce merged commit 5ab3be6 into expressjs:master Sep 29, 2016
@niftylettuce
Copy link
Contributor

Published v0.2.2 to NPM. Thanks @idanto

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