Skip to content

Commit

Permalink
trim extension on match
Browse files Browse the repository at this point in the history
  • Loading branch information
SeaDve committed Dec 27, 2023
1 parent 41529cf commit e94e2ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/recent_item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ impl RecentItem {

pub fn fuzzy_match(&self, pattern: &str) -> Option<i64> {
let choice = self.file().path().unwrap();
FUZZY_MATCHER.fuzzy_match(&choice.to_string_lossy(), pattern)
FUZZY_MATCHER.fuzzy_match(choice.to_string_lossy().trim_end_matches(".gv"), pattern)
}
}

0 comments on commit e94e2ee

Please sign in to comment.