Skip to content
This repository has been archived by the owner on Feb 26, 2023. It is now read-only.

Commit

Permalink
Hopefully Fixed issue with regex pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
Pr3roxDLC committed Oct 16, 2022
1 parent 21f576a commit fce176e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.regex.Matcher;

public class FileManager {

Expand Down Expand Up @@ -65,7 +66,7 @@ public class FileManager {
}

private static InputStream resourceAsStream(String path) {
String resourcePath = path.replaceAll(File.separator, "/");
String resourcePath = path.replaceAll(Matcher.quoteReplacement(File.separator), "/");
Main.logger.info("Loading resource from jar: " + resourcePath);
return FileManager.class.getClassLoader().getResourceAsStream("assets/catalyst/" + resourcePath);
}
Expand Down

0 comments on commit fce176e

Please sign in to comment.