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 semver parsing to fall back on more generic parser #146

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

steinwurf-sofie
Copy link
Member

This allows for parsing version numbers such as 5.1 or v1.0.0, even if these are not technically semver compatible.

Using a similar coerce strategy as upstream describes in file https://github.com/python-semver/python-semver/blob/4815626cb6e2c2d0ee0edc015d3ae32485fadd03/docs/advanced/coerce.py

Changed to not attempt to search through a tag to find a number, as i fear this will be too general and may give bad results in large monorepos where tags may be written as backup/1.0.2 or similar.

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.

1 participant