Skip to content

Commit

Permalink
(fix) ffm: mimic loadLibrary() check
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-pelykh committed Jun 28, 2024
1 parent d8b1203 commit 31a8ec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ffm/src/main/java/org/pcre4j/ffm/Pcre2.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public Pcre2(String library, String suffix) {
throw new IllegalArgumentException("suffix must not be null");
}

if (new File(library).exists()) {
if (library.indexOf(File.separatorChar) != -1) {
System.load(library);
} else {
System.loadLibrary(library);
Expand Down

0 comments on commit 31a8ec4

Please sign in to comment.