Skip to content

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