Skip to content

Commit

Permalink
Change regex to split on '-'/'.'. Ignore version.
Browse files Browse the repository at this point in the history
Signed-off-by: Finn Carroll <[email protected]>
  • Loading branch information
finnegancarroll committed Dec 24, 2024
1 parent 244719e commit 5070353
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ private Set<File> extractJars(Set<File> jars) {
getProject().delete(jarExpandDir);

jars.forEach(jar -> {
String jarPrefix = jar.getName().replaceAll("-\\d+\\.\\d+\\.\\d+\\.jar$", "");
String jarPrefix = jar.getName().split("[-.]")[0];
File jarSubDir = new File(jarExpandDir, jarPrefix);
extractedJars.add(jarSubDir);
FileTree jarFiles = getProject().zipTree(jar);
Expand Down

0 comments on commit 5070353

Please sign in to comment.