Skip to content

Commit f586a0b

Browse files
fix: sort class breaks functions
closes #75
1 parent 9f38333 commit f586a0b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export class HTMLParser {
66
parseClasses(): { start: number; end: number; result: string }[] {
77
// Match all class properties
88
if (!this.html) return [];
9-
const classRegex = /(class|className|dark|light|active|after|before|checked|disabled|focus|hover|tw)\s*=\s*["']([^{}]*)["|']/;
9+
const classRegex = /(class|className|w:dark|w:light|w:active|w:after|w:before|w:checked|w:disabled|w:focus|w:hover|w:tw)=["']([^\{\}\:]+)["']/;
1010
const quoteRegex = /["']/;
1111
const classNames = [];
1212
let _indexStart = 0;

0 commit comments

Comments
 (0)