Skip to content
This repository was archived by the owner on Jan 2, 2025. It is now read-only.

Commit 8527aa2

Browse files
authored
omit directories from fuzzy search (#602)
1 parent 37297fe commit 8527aa2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/bleep/src/indexes/file.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ impl Indexer<File> {
384384
.map(|f| f.is_match(&doc.relative_path))
385385
.unwrap_or_default()
386386
})
387+
.filter(|doc| !doc.relative_path.ends_with(MAIN_SEPARATOR)) // omit directories
387388
.take(limit)
388389
}
389390

0 commit comments

Comments
 (0)