Skip to content

Commit

Permalink
Change: JAR File Analyzer: Support version numbers with patch level a…
Browse files Browse the repository at this point in the history
…s in "1.2.3-1".
  • Loading branch information
smarkwal committed Sep 26, 2024
1 parent ea82269 commit 6367358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jarhc/src/main/java/org/jarhc/model/JarFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6367358

Please sign in to comment.