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 f5f0ac0 commit ffa445e
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 ffa445e

Please sign in to comment.