decord/beta/source/modules/threads/sanitizeThreadName.tsx
github-actions 19e52f659f chore: update source for beta 347.11
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4973.js (118.4 MB)
2026-09-26 17:57:22 +00:00

20 lines
471 B
TypeScript

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