Added another .replace

This commit is contained in:
Scott Williams 2021-06-20 22:55:58 +01:00
parent 3f45f7f250
commit 80c45b6396

View File

@ -239,7 +239,7 @@ lazy_static! {
if path.is_dir(){
list_items(&path, &base, &mut items)?;
} else if let Ok(path) = path.strip_prefix(base) {
let path = path.to_string_lossy().trim_end_matches(".ron").replace('/', ".");
let path = path.to_string_lossy().trim_end_matches(".ron").replace('/', ".").replace('\\', ".");
items.push(path);
}
}