fix: stabilize media paths and logs
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user