decord/alpha/source/modules/threads/sanitizeThreadName.tsx
github-actions 45f5884862 chore: update source for alpha 348.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5012.js (118.4 MB)
2026-09-23 06:49:31 +00:00

20 lines
471 B
TypeScript

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