decord/alpha/source/modules/threads/sanitizeThreadName.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

20 lines
471 B
TypeScript

// Module ID: 7604
// Function ID: 7605
// Name: sanitizeThreadName
// Dependencies: [2]
// Exports: default
// Module 7604 (sanitizeThreadName)
import size from "module_2" /* 2 */;
const re0 = /\r\n|[\r\n]/g;
const result = size.fileFinishedImporting("modules/threads/sanitizeThreadName.tsx");
export default function sanitizeThreadName(str, arg1) {
str = str.replace(re0, " ");
let trimmed = str;
if (arg1) {
trimmed = str.trim();
}
return trimmed;
};