Skip to content

Commit

Permalink
Merge pull request #72 from dnaka91/regex-opacity-char
Browse files Browse the repository at this point in the history
Add `/` char to regex for colors with opacity
  • Loading branch information
praveenperera authored Apr 23, 2023
2 parents ff389b3 + 427eef9 commit 173ad16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/defaults.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use regex::Regex;
use std::collections::HashMap;

pub static RE: Lazy<Regex> = Lazy::new(|| {
Regex::new(r#"\b(?: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 173ad16

Please sign in to comment.