Skip to content

Commit c7edcaf

Browse files
authored
Fix getMajorProjectVersion Regex pattern in Go
1 parent ca2e8fa commit c7edcaf

File tree

1 file changed

+1
-1
lines changed
  • build-info-extractor-go/src/main/java/org/jfrog/build/extractor/go/extractor

1 file changed

+1
-1
lines changed

build-info-extractor-go/src/main/java/org/jfrog/build/extractor/go/extractor/GoVersionUtils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public static int getMajorVersion(String version, Log log) {
5050
public static int getMajorProjectVersion(String project, Log log) {
5151
if (!StringUtils.isEmpty(project)) {
5252
project = project.toLowerCase();
53-
if (project.matches("^.*/v\\d")) {
53+
if (project.matches("^.*/v\\d+")) {
5454
String major = project.substring(project.lastIndexOf("/v") + 2);
5555
try {
5656
return Integer.parseInt(major);

0 commit comments

Comments
 (0)