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

ParseTolerant "1.15-alpine3.14" returns error #72

Open
bhaskarkc opened this issue Aug 11, 2021 · 1 comment
Open

ParseTolerant "1.15-alpine3.14" returns error #72

bhaskarkc opened this issue Aug 11, 2021 · 1 comment

Comments

@bhaskarkc
Copy link

Using semver v4

	e, err := semver.ParseTolerant("1.15-alpine3.14")
	if err != nil {
		fmt.Println(err)
	}

returns error Invalid character(s) found in minor number "15-alpine3"

@denislyam-buildben2
Copy link

Part of the line -alpine3 is interpreted by the package as a pre-release version.
But according to the document, the pre-release version can go strictly beyond the patch part

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

No branches or pull requests

2 participants