diff --git a/build-info-extractor-go/src/main/java/org/jfrog/build/extractor/go/extractor/GoVersionUtils.java b/build-info-extractor-go/src/main/java/org/jfrog/build/extractor/go/extractor/GoVersionUtils.java index ee6161bcb..bfef3759e 100644 --- a/build-info-extractor-go/src/main/java/org/jfrog/build/extractor/go/extractor/GoVersionUtils.java +++ b/build-info-extractor-go/src/main/java/org/jfrog/build/extractor/go/extractor/GoVersionUtils.java @@ -50,7 +50,7 @@ public static int getMajorVersion(String version, Log log) { public static int getMajorProjectVersion(String project, Log log) { if (!StringUtils.isEmpty(project)) { project = project.toLowerCase(); - if (project.matches("^.*/v\\d")) { + if (project.matches("^.*/v\\d+")) { String major = project.substring(project.lastIndexOf("/v") + 2); try { return Integer.parseInt(major);