Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanatkn committed Oct 4, 2024
1 parent acfa47a commit 26c4855
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/css_class_helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const CSS_CLASS_MATCHERS = [
/(class):([a-zA-Z-_0-9]+)/gi, // initial capture group is fake just because the second regexp uses a capture group for its back reference

// `class="a"`, `classes="a"`, `classes = 'a b'`, `classes: 'a b'` with any whitespace around the `=`/`:`
/class(?:es)?\s*[=:]\s*(["'`])([\s\S]+?)\1/gi,
/(?<!['"`])class(?:es)?\s*[=:]\s*(["'`])([\s\S]+?)\1/gi,
];

/**
Expand Down

0 comments on commit 26c4855

Please sign in to comment.