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

When using a specific pattern, unintended results are returned #37

Closed
snackmgmg opened this issue Jul 14, 2018 · 1 comment
Closed

When using a specific pattern, unintended results are returned #37

snackmgmg opened this issue Jul 14, 2018 · 1 comment

Comments

@snackmgmg
Copy link
Contributor

snackmgmg commented Jul 14, 2018

When using a specific pattern, unintended results are returned

func main(){
	ver1, err1 := version.NewVersion("1.2.beta")
	ver2, err2 := version.NewVersion("1.22.beta")

	fmt.Println(ver1)
	fmt.Println(err1)
	fmt.Println()
	fmt.Println(ver2)
	fmt.Println(err2)
}
$ go run main.go                                                                                                                                                           
<nil>
Malformed version: 1.2.beta

1.2.0-2.beta
<nil>
@snackmgmg snackmgmg changed the title When using a specific character string, unintended results are returned. When using a specific pattern, unintended results are returned Jul 14, 2018
@mitchellh
Copy link
Contributor

Fixed by your own PR! 💃

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