decord/alpha/source/modules/channel/sanitizeGuildTextChannelName.tsx
github-actions 1224ea86fd chore: update source for alpha 348.5
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5021.js (118.4 MB)
2026-09-26 08:31:33 +00:00

16 lines
588 B
TypeScript

// Module ID: 4991
// Function ID: 4992
// Name: sanitizeGuildTextChannelName
// Dependencies: [2]
// Exports: default
// Module 4991 (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();
};