Skip to content

Commit

Permalink
feat: ✨ add sorting feature to some attributify utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderniebuhr committed Aug 11, 2021
1 parent 6dc8f22 commit 63f88fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ export class HTMLParser {
parseClasses(): ClassName[] {
// Match all class properties
if (!this.html) return [];
const classRegex = /\s(?:class|className|w:dark|w:light|w:active|w:after|w:before|w:checked|w:disabled|w:focus|w:hover|w:tw)=(["'])([^{}]+)\1/;
const classRegex =
/\s(?:class|className|bg|text|hover|border|flex|grid)=(["'])([^{}]+)\1/;
const quoteRegex = /["']/;
const classNames = [];
let _indexStart = 0;
Expand Down

0 comments on commit 63f88fd

Please sign in to comment.