fix(scripts/lint): userstyle names can include dashes (#1558)
This commit is contained in:
1 parent
3a48482e4a
commit
36bf9cb720
1 file changed
+1
-1
@@ -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")]
|
||||
|
||||
Reference in new issue
Block a user