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

Allow parsing not-quite-semver versions #25

Closed
wants to merge 2 commits into from
Closed

Allow parsing not-quite-semver versions #25

wants to merge 2 commits into from

Commits on Oct 27, 2017

  1. Allow parsing not-quite-semver versions

    Change the behaviour for parsing not-quite-semver versions, specifically
    when there is only a major section, and when there is no patch section.
    Rather than error out, we check if we are at the end of the string. If
    so, then we return the version with all the information we know so far.
    If we are not at the end of the string then we error out with the same
    error message.
    Josh Leeb-du Toit committed Oct 27, 2017
    Configuration menu
    Copy the full SHA
    7b410da View commit details
    Browse the repository at this point in the history
  2. Add support for parsing build and pre after minor

    Add support for parsing versions with the build or the pre section after
    minor instead of after the patch. Examples are: `1.2-beta` and
    `1.2+build3`.
    Josh Leeb-du Toit committed Oct 27, 2017
    Configuration menu
    Copy the full SHA
    a1c02a3 View commit details
    Browse the repository at this point in the history