fix regular expressions that do not take effect

This commit is contained in:
CCTV-1
2020-08-02 21:34:51 +08:00
parent bd1b87401a
commit 03ec616b77

View File

@@ -122,7 +122,7 @@ public final class ImageKeys {
file = findFile(dir, TextUtil.fastReplace(fullborderFile, "1.fullborder", ".fullborder"));
if (file != null) { return file; }
// if there's an art variant try without it for .full images
file = findFile(dir, filename.replaceAll("[0-9].full]",".full"));
file = findFile(dir, filename.replaceAll("[0-9].full",".full"));
if (file != null) { return file; }
// if there's a 1st art variant try with it for .full images
file = findFile(dir, filename.replaceAll("[0-9]*.full", "1.full"));