Skip to content

Commit dbd6ce5

Browse files
committed
Improve native classifier regex
* Handle more architecture labels including arm64. * Recognize both macosx and macos as OS prefixes.
1 parent 1b25c58 commit dbd6ce5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -729,8 +729,9 @@ private static String classifiers() {
729729
"sources",
730730
"javadoc",
731731
"natives?-?\\w*",
732-
"(natives-)?(android|linux|macosx|solaris|windows)-" +
733-
"(aarch64|amd64|arm|armv6|armv6hf|i586|universal|x86|x86_64)",
732+
"(natives-)?(android|linux|macosx|macos|solaris|windows)-" +
733+
"(aarch64|amd64|arm64|armv6hf|armv6|arm|" +
734+
"i386|i486|i586|i686|universal|x86[_-]32|x86[_-]64|x86)",
734735
};
735736
final StringBuilder sb = new StringBuilder("(");
736737
for (final String classifier : classifiers) {

0 commit comments

Comments
 (0)