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 prereleases to contain x #76

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

Conversation

danielhelfand
Copy link

Closes #75

This pull request slightly alters expandWildcardVersions to use strings.Contains(.x) instead of strings.Contains(x) for trying to assess whether a range condition has a wildcard. This allows prereleases with x in the name as opposed to failing with the error documented in #75: Could not get version from string: "<".

Comment on lines +331 to +334
opStr, vStr, err := splitComparatorVersion(ap)
if err != nil {
return nil, err
}
Copy link
Author

Choose a reason for hiding this comment

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

This was moved up to not break the following expandedWildcardVersions test case: {[][]string{{"foox"}}, nil}.

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.

Using x in prerelease causes error
1 participant