Simplify regular expression by using raw string literal SCC-S1007
Anti-pattern
Major
6 months ago3 years old
should use raw string (...) with regexp.MustCompile to avoid having to escape twice
19}
20
21func compareGoVersion(a, b string) int {
22	reg := regexp.MustCompile("^\\d*")23
24	a = strings.TrimPrefix(a, "go")
25	b = strings.TrimPrefix(b, "go")