From 6367358c8622c1f71b659aa134135b4fa2e67717 Mon Sep 17 00:00:00 2001 From: smarkwal Date: Thu, 26 Sep 2024 16:25:10 +0200 Subject: [PATCH] Change: JAR File Analyzer: Support version numbers with patch level as in "1.2.3-1". --- jarhc/src/main/java/org/jarhc/model/JarFile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jarhc/src/main/java/org/jarhc/model/JarFile.java b/jarhc/src/main/java/org/jarhc/model/JarFile.java index f1b513a8..8e444228 100644 --- a/jarhc/src/main/java/org/jarhc/model/JarFile.java +++ b/jarhc/src/main/java/org/jarhc/model/JarFile.java @@ -35,7 +35,7 @@ public class JarFile { // TODO: support additional version patterns? - private static final Pattern VERSION_PATTERN = Pattern.compile("-([0-9]+(\\.[0-9]+){0,10}(-SNAPSHOT)?)"); + private static final Pattern VERSION_PATTERN = Pattern.compile("-([0-9]+(\\.[0-9]+){0,10}(-[1-9])?(-SNAPSHOT)?)"); /** * Artifact name (from Maven coordinates or file name)