Skip to content

Commit 31a8ec4

Browse files
committed
(fix) ffm: mimic loadLibrary() check
1 parent d8b1203 commit 31a8ec4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ffm/src/main/java/org/pcre4j/ffm/Pcre2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public Pcre2(String library, String suffix) {
9191
throw new IllegalArgumentException("suffix must not be null");
9292
}
9393

94-
if (new File(library).exists()) {
94+
if (library.indexOf(File.separatorChar) != -1) {
9595
System.load(library);
9696
} else {
9797
System.loadLibrary(library);

0 commit comments

Comments
 (0)