oberknecht-utils
Version:
Utils for oberknecht packages
10 lines (9 loc) • 329 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.correctChannelName = void 0;
function correctChannelName(channel) {
if (!(channel ?? undefined))
return undefined;
return `#${channel.toLowerCase().trim().replace(/^#/g, "")}`;
}
exports.correctChannelName = correctChannelName;