Skip to content

Commit

Permalink
Fix tag pattern to match only digits
Browse files Browse the repository at this point in the history
  • Loading branch information
radoslaw-panuszewski committed Oct 15, 2024
1 parent eae62d5 commit d0f2d6e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ private VersionInfo readVersions(

List<Pattern> releaseTagPatterns = tagProperties.getAllPrefixes().stream()
.map(prefix -> prefix.isEmpty() ? "" : prefix + tagProperties.getVersionSeparator())
.map(pattern -> Pattern.compile("^" + pattern + "(.+)\\.(.+)\\.(.+)"))
.map(pattern -> Pattern.compile("^" + pattern + "(\\d+)\\.(\\d+)\\.(\\d+)"))
.collect(toList());
Pattern nextVersionTagPattern = Pattern.compile("(.+)\\.(.+)\\.(.+)" + nextVersionProperties.getSuffix() + "$");
Pattern nextVersionTagPattern = Pattern.compile("(\\d+)\\.(\\d+)\\.(\\d+)" + nextVersionProperties.getSuffix() + "$");
boolean forceSnapshot = versionProperties.isForceSnapshot();
boolean useHighestVersion = versionProperties.isUseHighestVersion();

Expand Down

0 comments on commit d0f2d6e

Please sign in to comment.