Skip to content

Commit

Permalink
Normalize paths before searching
Browse files Browse the repository at this point in the history
  • Loading branch information
linw1995 committed Aug 7, 2024
1 parent f491fd4 commit c0a1d7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type BookmarkFilter = Box<
fn join_folder_path(cwd: &str, p: &str) -> String {
const PATH_SEP: char = '/';
if p.starts_with(PATH_SEP) {
p.to_string()
p.trim_end_matches(PATH_SEP).to_string()
} else {
cwd.trim_end_matches(PATH_SEP)
.split(PATH_SEP)
Expand Down

0 comments on commit c0a1d7c

Please sign in to comment.