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

Fix less version parsing for minor versions of less #1629

Merged
merged 1 commit into from
May 12, 2021

Conversation

aswild
Copy link
Contributor

@aswild aswild commented May 2, 2021

Less 581.2 is here, and it has a ".2" in the version string, which can't
be parsed as a usize.

Update the check to find a non-digit character rather than a space. This
ignores the minor version, but parses the major version correctly.

Less 581.2 is here, and it has a ".2" in the version string, which can't
be parsed as a usize.

Update the check to find a non-digit character rather than a space. This
ignores the minor version, but parses the major version correctly.
Copy link
Collaborator

@eth-p eth-p left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@aswild aswild closed this May 3, 2021
@aswild aswild reopened this May 3, 2021
@eth-p eth-p mentioned this pull request May 9, 2021
@sharkdp sharkdp merged commit 91a347b into sharkdp:master May 12, 2021
@sharkdp
Copy link
Owner

sharkdp commented May 12, 2021

Thank you!

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.

3 participants