mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-13 06:50:09 +01:00
feat: range substitution for typos
This commit is contained in:
parent
b991214729
commit
2a5fa8a950
4 changed files with 102 additions and 53 deletions
|
|
@ -46,7 +46,7 @@ pub fn get_best_match_file(input: &str) -> Option<String> {
|
|||
})
|
||||
.collect::<Vec<String>>();
|
||||
|
||||
let best_match = find_similar(&exit_dir, dir_files);
|
||||
let best_match = find_similar(&exit_dir, &dir_files);
|
||||
best_match.as_ref()?;
|
||||
|
||||
input = format!("{}/{}", input, best_match.unwrap());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue