fix(compress): downgrade non-compressible log level and expand excluded file types (#1780)

This commit is contained in:
唐小鸭
2026-02-16 03:36:22 +08:00
committed by GitHub
parent 9786d9b004
commit 4413878739
2 changed files with 177 additions and 25 deletions
+3 -2
View File
@@ -157,10 +157,11 @@ pub fn has_pattern(patterns: &[&str], match_str: &str) -> bool {
/// assert!(has_string_suffix_in_slice("document.TXT", &suffixes));
/// assert!(!has_string_suffix_in_slice("image.png", &suffixes));
/// ```
pub fn has_string_suffix_in_slice(str: &str, list: &[&str]) -> bool {
pub fn has_string_suffix_in_slice(str: &str, list: &[impl AsRef<str>]) -> bool {
let str = str.to_lowercase();
for v in list {
if *v == "*" {
let v = v.as_ref();
if v == "*" {
return true;
}