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

Make version expression public #165

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

umairidris
Copy link

@umairidris umairidris commented Aug 12, 2021

Expose the expression so that users can use it to build their own regexes for extracting semver substrings to pass to NewVersion.

@umairidris
Copy link
Author

An alternative could also be to add something like

func Find(v string) (*Version, bool)

which is meant for explicitly finding versions that are substrings.

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.

None yet

1 participant