Skip to content

Commit

Permalink
Merge pull request #226 from scireum/feature/jvo/issues/225
Browse files Browse the repository at this point in the history
Fix: Filtering of Bucket Contents in UI
  • Loading branch information
jakobvogel committed Mar 8, 2023
2 parents 006801f + 53e60fa commit f5519ef
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/main/java/ninja/Bucket.java
Expand Up @@ -363,9 +363,11 @@ public int countObjects(@Nullable String query) {
}

private boolean isMatchingObject(@Nullable String query, File currentFile) {
return (Strings.isEmpty(query) || currentFile.getName().contains(query))
&& currentFile.isFile()
&& !currentFile.getName().startsWith("$");
if (!currentFile.isFile() || currentFile.getName().startsWith("$")) {
return false;
}

return Strings.isEmpty(query) || StoredObject.decodeKey(currentFile.getName()).contains(query);
}

protected int getVersion() {
Expand Down

0 comments on commit f5519ef

Please sign in to comment.