We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f38333 commit f586a0bCopy full SHA for f586a0b
1 file changed
src/utils/parser.ts
@@ -6,7 +6,7 @@ export class HTMLParser {
6
parseClasses(): { start: number; end: number; result: string }[] {
7
// Match all class properties
8
if (!this.html) return [];
9
- const classRegex = /(class|className|dark|light|active|after|before|checked|disabled|focus|hover|tw)\s*=\s*["']([^{}]*)["|']/;
+ const classRegex = /(class|className|w:dark|w:light|w:active|w:after|w:before|w:checked|w:disabled|w:focus|w:hover|w:tw)=["']([^\{\}\:]+)["']/;
10
const quoteRegex = /["']/;
11
const classNames = [];
12
let _indexStart = 0;
0 commit comments