Skip to content

Commit 626f62b

Browse files
committed
fix(tasty): support more complex selectors in mods
1 parent 0c70e03 commit 626f62b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tasty/utils/styles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ export function styleMapToStyleMapStateList(
906906
}
907907

908908
const STATES_REGEXP =
909-
/([&|!^])|([()])|([a-z][a-z0-9-]+)|(:[a-z][a-z0-9-]+\([:a-z0-9-]+\)|:[a-z][a-z0-9-]+)|(\.[a-z][a-z0-9-]+)|(\[[^\]]+])/gi;
909+
/([&|!^])|([()])|([a-z][a-z0-9-]+)|(:[a-z][a-z0-9-]+\([^)]+\)|:[a-z][a-z0-9-]+)|(\.[a-z][a-z0-9-]+)|(\[[^\]]+])/gi;
910910
export const STATE_OPERATORS = {
911911
NOT: '!',
912912
AND: '&',

0 commit comments

Comments
 (0)