diff --git a/src/cli/utils.ts b/src/cli/utils.ts index 37d5566..fc0a134 100644 --- a/src/cli/utils.ts +++ b/src/cli/utils.ts @@ -24,7 +24,7 @@ export const extractStyles = (path: string) => { : fs.readFileSync(path).toString(); return fileContent.match( - /([a-zA-Z_]*)(?:[.]{1})([a-zA-Z_]+[\w\-_]*)(?:[\s\.\,\{\>#\:]{0})/gim + /(h[1-6]|[a-zA-Z_]*)(?:[.]{1})([a-zA-Z_]+[\w\-_]*)(?:[\s\.\,\{\>#\:]{0})/gim ); };