persona-community-5/.pnpm-store/v3/files/1d/29af9b0904acfeacfaf3c15a87f80e05b57aab96559fd3e7251367c26ebb115158e7676c99dd7ac2661ed16ea082b9024b2a1c70bc9cd27fa88037ecf3a085
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
769 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ChannelsKebabCase = void 0;
const ChannelsKebabCase = () => {
return {
Channel(channel, { report }) {
const segments = (channel.address || '')
.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: `\`${channel.address}\` does not use kebab-case.`,
location: { reportOnKey: true },
});
}
},
};
};
exports.ChannelsKebabCase = ChannelsKebabCase;