Skip to content

Commit f2692d7

Browse files
committed
FileUtils: -native is a classifier, not part of a version
This is the case for example for jffi which has an attached artifact with the "native" classifier. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 6c64ef3 commit f2692d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/scijava/util/FileUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public static String getExtension(final String path) {
130130
*/
131131
private final static Pattern versionPattern =
132132
Pattern
133-
.compile("(.+?)(-\\d+(\\.\\d+|\\d{7})+[a-z]?\\d?(-[A-Za-z0-9.]+?|\\.GA)*?)?((-(swing|swt|shaded|sources|javadoc))?(\\.jar(-[a-z]*)?))");
133+
.compile("(.+?)(-\\d+(\\.\\d+|\\d{7})+[a-z]?\\d?(-[A-Za-z0-9.]+?|\\.GA)*?)?((-(swing|swt|shaded|sources|javadoc|native))?(\\.jar(-[a-z]*)?))");
134134

135135
public static String stripFilenameVersion(final String filename) {
136136
final Matcher matcher = versionPattern.matcher(filename);

0 commit comments

Comments
 (0)