From 4d348d607973a11fe73047623478db45f1d45a31 Mon Sep 17 00:00:00 2001 From: Praveen Perera Date: Mon, 21 Oct 2024 15:25:08 -0500 Subject: [PATCH] Fix default regex --- rustywind-core/src/defaults.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rustywind-core/src/defaults.rs b/rustywind-core/src/defaults.rs index a6fbe9d..095d22b 100644 --- a/rustywind-core/src/defaults.rs +++ b/rustywind-core/src/defaults.rs @@ -4,7 +4,7 @@ use once_cell::sync::Lazy; use regex::Regex; pub static RE: Lazy = Lazy::new(|| { - Regex::new(r#"(?:class(?:Name)?\s*=\s*["'])([_a-zA-Z0-9\.\s\-:\[\]\(\)/%-]+)["']"#).unwrap() + Regex::new(r#"\b(?:class(?:Name)?\s*=\s*["'])([_a-zA-Z0-9\.,\s\-:\[\]()/#]+)["']"#).unwrap() }); pub static SORTER: Lazy> = Lazy::new(|| {