Skip to content

Commit

Permalink
Fix default regex
Browse files Browse the repository at this point in the history
  • Loading branch information
praveenperera committed Oct 21, 2024
1 parent 84769b1 commit 4d348d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rustywind-core/src/defaults.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use once_cell::sync::Lazy;
use regex::Regex;

pub static RE: Lazy<Regex> = 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<HashMap<String, usize>> = Lazy::new(|| {
Expand Down

0 comments on commit 4d348d6

Please sign in to comment.