Fix the getFSTEntriesByRegEx functions

This commit is contained in:
Maschell 2019-04-04 10:21:43 +02:00
parent 9acd11bd11
commit 671ade1fe0

View File

@ -124,7 +124,7 @@ public class NUSTitle {
.filter(e -> allowNotInPackage || !e.isNotInPackage()) //
.flatMap(e -> {
if (!e.isDir()) {
if (p.matcher(entry.getFullPath().replace("/", File.separator)).matches()) {
if (p.matcher(e.getFullPath().replace("/", File.separator)).matches()) {
return Stream.of(entry);
} else {
return Stream.empty();