From 649c50cf2e621f9b297ed93db9cbb74c250d00f3 Mon Sep 17 00:00:00 2001 From: uncenter <47499684+uncenter@users.noreply.github.com> Date: Sat, 4 Jan 2025 17:54:24 -0500 Subject: [PATCH] fix(scripts/lint): userstyle names can include dashes --- scripts/lint/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lint/main.ts b/scripts/lint/main.ts index d9be281cee..58edf2c9c6 100755 --- a/scripts/lint/main.ts +++ b/scripts/lint/main.ts @@ -14,7 +14,7 @@ import stylelintConfig from "../../.stylelintrc.js"; const args = parseArgs(Deno.args, { boolean: ["fix"] }); const userstyle = args._[0]?.toString().match( - /(?styles\/)?(?[a-z0-9_\.]+)(?\/)?(?catppuccin\.user\.less)?/, + /(?styles\/)?(?[a-z0-9_\-.]+)(?\/)?(?catppuccin\.user\.less)?/, )?.groups?.userstyle; const stylesheets = userstyle ? [path.join(REPO_ROOT, "styles", userstyle, "catppuccin.user.less")]