2026-09-26 17:57:22 +00:00
|
|
|
// Module ID: 4943
|
|
|
|
|
// Function ID: 4944
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: sanitizeGuildTextChannelName
|
|
|
|
|
// Dependencies: [2]
|
|
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-26 17:57:22 +00:00
|
|
|
// Module 4943 (sanitizeGuildTextChannelName)
|
2026-09-18 19:45:33 +00:00
|
|
|
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();
|
|
|
|
|
};
|