We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
:hover
:focus
1 parent 66db0b0 commit 247b72fCopy full SHA for 247b72f
src/parse-engines/common/css-class-extractor.ts
@@ -6,7 +6,7 @@ export default class CssClassExtractor {
6
* @description Extracts class names from CSS AST
7
*/
8
public static extract(ast: css.Stylesheet): CssClassDefinition[] {
9
- const classNameRegex = /[.]([\w-\\@\\:\\/]+)/g;
+ const classNameRegex = /[.](([\w-]|\\[@:/])+)/g;
10
11
const definitions: CssClassDefinition[] = [];
12
@@ -35,4 +35,4 @@ export default class CssClassExtractor {
35
});
36
return definitions;
37
}
38
-}
+}
0 commit comments