mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2026-02-02 15:45:11 +01:00
fix: escape spaces when matching files
This commit is contained in:
parent
2a5fa8a950
commit
a193a86a5f
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ pub fn get_best_match_file(input: &str) -> Option<String> {
|
||||||
.map(|file| {
|
.map(|file| {
|
||||||
let file = file.unwrap();
|
let file = file.unwrap();
|
||||||
|
|
||||||
file.file_name().into_string().unwrap()
|
file.file_name().into_string().unwrap().replace(" ", "\\ ")
|
||||||
})
|
})
|
||||||
.collect::<Vec<String>>();
|
.collect::<Vec<String>>();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue