[jOOQ/jOOQ#9726] FilePattern matches too many files when wildcards are

being used
This commit is contained in:
Lukas Eder 2020-01-14 15:53:26 +01:00
parent 4809fd4a55
commit 439238bd98

View File

@ -228,7 +228,7 @@ public final class FilePattern {
}
else {
String prefix = pattern.replaceAll("[*?].*", "");
file = new File(basedir, prefix).getCanonicalFile();
file = new File(basedir, prefix).getAbsoluteFile();
Pattern regex = Pattern.compile("^.*?"
+ pattern