decord/beta/source/modules/threads/sanitizeThreadName.tsx
github-actions 84d017ff78 chore: update source for beta 348.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5021.js (118.4 MB)
2026-09-28 16:18:32 +00:00

20 lines
471 B
TypeScript

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