Skip to content

Commit f79f249

Browse files
committed
use regex with boundaries
1 parent 074c866 commit f79f249

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/makefile/make.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func dataForTool(fromToolsGo bool, toolName string, fullTool ...string) (td tool
110110
} else {
111111
td.Tool = toolName
112112
}
113-
if match, _ := regexp.MatchString(`v\d+`, parts[len(parts)-1]); match {
113+
if match, _ := regexp.MatchString(`^v\d+$`, parts[len(parts)-1]); match {
114114
td.Name = parts[len(parts)-2]
115115
} else {
116116
td.Name = parts[len(parts)-1]

0 commit comments

Comments
 (0)