decord/beta/source/modules/threads/sanitizeThreadName.tsx
github-actions 30c0bb2ec3 chore: update source for beta 347.10
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4975.js (118.4 MB)
2026-09-24 16:03:38 +00:00

20 lines
471 B
TypeScript

// Module ID: 7550
// Function ID: 7551
// Name: sanitizeThreadName
// Dependencies: [2]
// Exports: default
// Module 7550 (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;
};