fix: escape spaces when matching files

This commit is contained in:
iff 2023-08-11 01:39:47 +02:00
parent 2a5fa8a950
commit a193a86a5f

View file

@ -42,7 +42,7 @@ pub fn get_best_match_file(input: &str) -> Option<String> {
.map(|file| {
let file = file.unwrap();
file.file_name().into_string().unwrap()
file.file_name().into_string().unwrap().replace(" ", "\\ ")
})
.collect::<Vec<String>>();