Skip to content

Commit

Permalink
more trim maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettMayson committed Oct 18, 2024
1 parent 63003cd commit 6ffc8a5
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions bin/src/modules/binarize/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,11 +277,16 @@ impl Module for Binarize {
&target
.source
.trim_start_matches(tmp_source.to_str().expect("path is valid utf-8"))
.trim_start_matches('/')
.replace('/', "\\"),
&target
.output
.trim_start_matches(tmp_source.to_str().expect("path is valid utf-8"))
.replace('/', "\\"),
&format!(
"..\\{}",
&target
.output
.trim_start_matches(tmp_source.to_str().expect("path is valid utf-8"))
.trim_start_matches('/')
.replace('/', "\\")
),
&target.entry.replace('/', "\\"),
])
.current_dir(&tmp_source);
Expand Down

0 comments on commit 6ffc8a5

Please sign in to comment.