persona-community-5/.pnpm-store/v3/files/29/d95f82fbb25f305e03f50e7477407b71006c952271d2fe8d10fb46c289887e468d37ded830bd1ded0135d103167cead780ee84f810410ef9024cf78b990d82
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

20 lines
743 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ChannelsKebabCase = void 0;
const ChannelsKebabCase = () => {
return {
Channel(_channel, { report, key }) {
const segments = key
.split(/[/.:]/) // split on / or : as likely channel namespacers
.filter((s) => s !== ''); // filter out empty segments
if (!segments.every((segment) => /^{.+}$/.test(segment) || /^[a-z0-9-.]+$/.test(segment))) {
report({
message: `\`${key}\` does not use kebab-case.`,
location: { reportOnKey: true },
});
}
},
};
};
exports.ChannelsKebabCase = ChannelsKebabCase;