fix: stabilize media paths and logs

This commit is contained in:
Peter Steinberger
2026-01-08 04:40:50 +00:00
parent 9c9d191d6f
commit 5b45a143a1
3 changed files with 11 additions and 4 deletions

View File

@@ -20,6 +20,7 @@ const normalizeText = (value?: string) =>
(value ?? "")
.replace(/\r\n/g, "\n")
.replace(/\r/g, "\n")
.replace(/[\u0000-\u0008\u000b\u000c\u000e-\u001f\u007f]/g, "")
.split("\n")
.map((line) => line.replace(/\s+$/u, ""))
.join("\n")