Skip to content

Commit

Permalink
fix #571, binarize exclude
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettMayson committed Oct 15, 2023
1 parent 53d3f68 commit a984a4a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bin/src/modules/binarize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,13 @@ impl Module for Binarize {
.map(|file| glob::Pattern::new(file))
.collect::<Result<Vec<_>, glob::PatternError>>()?
.iter()
.any(|pat| pat.matches(entry.as_str()))
.any(|pat| {
pat.matches(
entry
.as_str()
.trim_start_matches(&format!("/{}/", addon.folder())),
)
})
{
debug!("skipping binarization of {}", entry.as_str());
continue;
Expand Down

0 comments on commit a984a4a

Please sign in to comment.