decord/alpha/source/modules/channel/sanitizeGuildTextChannelName.tsx
github-actions 6eea20b8e1 chore: update source for alpha 348.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5014.js (118.4 MB)
2026-09-24 10:59:02 +00:00

16 lines
588 B
TypeScript

// Module ID: 4984
// Function ID: 4985
// Name: sanitizeGuildTextChannelName
// Dependencies: [2]
// Exports: default
// Module 4984 (sanitizeGuildTextChannelName)
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/channel/sanitizeGuildTextChannelName.tsx");
export default function sanitizeGuildTextChannelName(str) {
str = str.replace(/[\s-~]+/g, "-");
const str2 = str.replace(/[\s-~]+/g, "-").replace(/^-+/, "");
return str.replace(/[\s-~]+/g, "-").replace(/^-+/, "").replace(/[\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g, "").toLowerCase();
};