use glob_match::glob_match;
use ripunzip::FilenameFilter;
static PATTERNS: [&str; 12] = [
"**/*.so",
"**/chrome",
"**/en-US.pak",
"**/*.dat",
"**/chrome_crash*",
"**/v8_context_snapshot.bin",
"**/resources.pak",
"**/chrome_*_percent.pak",
"**/nacl_helper",
"**/Chromium.app/**",
"**/d8",
"**/snapshot_blob.bin",
];
pub(crate) struct ChromiumFilenameFilter;
impl FilenameFilter for ChromiumFilenameFilter {
fn should_unzip(&self, filename: &str) -> bool {
PATTERNS.iter().any(|p| glob_match(p, filename))
}
}