fix(scripts/lint): userstyle names can include dashes (#1558)

This commit is contained in:
uncenter authored and GitHub committed 2025-01-04 17:55:02 -05:00
1 parent 3a48482e4a
commit 36bf9cb720
1 file changed
+1 -1
+1 -1
View File
@@ -14,7 +14,7 @@ import stylelintConfig from "../../.stylelintrc.js";
const args = parseArgs(Deno.args, { boolean: ["fix"] });
const userstyle = args._[0]?.toString().match(
/(?<base>styles\/)?(?<userstyle>[a-z0-9_\.]+)(?<trailing>\/)?(?<file>catppuccin\.user\.less)?/,
/(?<base>styles\/)?(?<userstyle>[a-z0-9_\-.]+)(?<trailing>\/)?(?<file>catppuccin\.user\.less)?/,
)?.groups?.userstyle;
const stylesheets = userstyle
? [path.join(REPO_ROOT, "styles", userstyle, "catppuccin.user.less")]