Skip to content

Commit

Permalink
fix(scripts/lint): userstyle names can include dashes (#1558)
Browse files Browse the repository at this point in the history
  • Loading branch information
uncenter authored Jan 4, 2025
1 parent 3a48482 commit 36bf9cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/lint/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down

0 comments on commit 36bf9cb

Please sign in to comment.