decord/alpha/source/modules/threads/sanitizeThreadName.tsx

21 lines
471 B
TypeScript
Raw Permalink Normal View History

2026-10-12 06:59:38 +00:00
// Module ID: 6976
// Function ID: 6977
2026-07-20 16:05:17 +00:00
// Name: sanitizeThreadName
2026-07-23 10:11:24 +00:00
// Dependencies: [2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-10-12 06:59:38 +00:00
// Module 6976 (sanitizeThreadName)
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
const re0 = /\r\n|[\r\n]/g;
const result = size.fileFinishedImporting("modules/threads/sanitizeThreadName.tsx");
2026-07-20 16:05:17 +00:00
export default function sanitizeThreadName(str, arg1) {
str = str.replace(re0, " ");
2026-07-20 16:05:17 +00:00
let trimmed = str;
if (arg1) {
trimmed = str.trim();
}
return trimmed;
};