Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit da624e8

Browse files
committed
fix: update variant selector pattern
1 parent 9236cb6 commit da624e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ export const CSS_IMPORT_PATTERN = /@import\s+('|")(?<file>[^("|')]*)('|")/;
66

77
export const VARIANT_ATRULE_PATTERN = /@variant\s+(?<name>.*[^\s])\s+\((?<selectors>.*[^;|\s])\)/;
88

9-
export const VARIANT_SELECTOR_PATTERN = /:variant\((.*[^)])\)/;
9+
export const VARIANT_SELECTOR_PATTERN = /:variant\(([^)\n\r]*)\)/;

0 commit comments

Comments
 (0)