diff --git a/bin/src/modules/binarize.rs b/bin/src/modules/binarize.rs index d4fccb04..928e3a3f 100644 --- a/bin/src/modules/binarize.rs +++ b/bin/src/modules/binarize.rs @@ -84,7 +84,13 @@ impl Module for Binarize { .map(|file| glob::Pattern::new(file)) .collect::, 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;