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

Parse start and end line numbers as numbers, not strings #35

Merged
merged 3 commits into from
Oct 14, 2018

Conversation

mauricedb
Copy link
Contributor

Using the --start and --end can fail the check that the end line is larger than the start line because the comparison is done using strings instead of the numerical value.

Fixes #34

@mixn
Copy link
Owner

mixn commented Oct 12, 2018

Weirdly seemed to have missed this due to copy/pasting the meow flags objects, thank you @mauricedb!

I’ll review and merge tomorrow, when back @ 💻. :)

Copy link
Owner

@mixn mixn left a comment

Choose a reason for hiding this comment

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

There’s a small typo here + 3rd person would be good to keep things consistent, should be: “Makes sure the end line is larger than start line”. Thanks and sorry, haha. :) Other than that, looks merge-ready!

@mauricedb mauricedb force-pushed the Issue-34-string-line-numbers branch from 046a9ad to cad6972 Compare October 14, 2018 16:23
@mauricedb
Copy link
Contributor Author

@mixn Oops, sorry for the typo. Fixed.

@mixn mixn merged commit f1920b5 into mixn:master Oct 14, 2018
@mixn
Copy link
Owner

mixn commented Oct 14, 2018

Thanks again @mauricedb, nice catch! ✋

@mixn mixn mentioned this pull request Oct 16, 2018
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