fix: finalize inbound contexts
This commit is contained in:
@@ -1,7 +1,3 @@
|
||||
export function normalizeInboundTextNewlines(input: string): string {
|
||||
const text = input.replaceAll("\r\n", "\n").replaceAll("\r", "\n");
|
||||
if (text.includes("\n")) return text;
|
||||
if (!text.includes("\\n")) return text;
|
||||
return text.replaceAll("\\n", "\n");
|
||||
return input.replaceAll("\r\n", "\n").replaceAll("\r", "\n").replaceAll("\\n", "\n");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user