Skip to content

Conversation

@nunofgs
Copy link

@nunofgs nunofgs commented May 18, 2016

Fixes an issue where the range items=0-0 would be parsed as:

{ first: 0, last: '0', unit: 'bytes' }

Note the string around zero — '0'.

This was occurring because 0 was parsed as an integer, which is falsy in Javascript.

@nunofgs nunofgs added the bug label May 18, 2016
@nunofgs nunofgs self-assigned this May 18, 2016
@franciscocardoso franciscocardoso merged commit 30c0937 into master May 18, 2016
@franciscocardoso franciscocardoso deleted the bugfix/fix-parsing-of-falsy-range branch May 18, 2016 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants