Skip to content

Commit bdb41ce

Browse files
authored
Fix issue with iso extract replacing all instances of prefix (#253)
1 parent 075e519 commit bdb41ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/command.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,8 @@ fn iso_extract_tree<T: ISO9660Reader>(
215215

216216
if should_extract {
217217
if let Some(extract_to_prefix) = &iso_extract_info.extract_to_prefix {
218-
file_path = file_path.replace(extract_prefix, extract_to_prefix);
218+
file_path =
219+
file_path.replacen(extract_prefix, extract_to_prefix, 1);
219220
}
220221
}
221222
} else if let Some(extract_to_prefix) = &iso_extract_info.extract_to_prefix {

0 commit comments

Comments
 (0)