We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef1907f commit 475340aCopy full SHA for 475340a
packages/angular/build/src/utils/server-rendering/manifest.ts
@@ -26,6 +26,7 @@ const MAIN_SERVER_OUTPUT_FILENAME = 'main.server.mjs';
26
const UNSAFE_CHAR_MAP: Record<string, string> = {
27
'`': '\\`',
28
'$': '\\$',
29
+ '\\': '\\\\',
30
};
31
32
/**
@@ -36,7 +37,7 @@ const UNSAFE_CHAR_MAP: Record<string, string> = {
36
37
* @returns The escaped string where unsafe characters are replaced.
38
*/
39
function escapeUnsafeChars(str: string): string {
- return str.replace(/[$`]/g, (c) => UNSAFE_CHAR_MAP[c]);
40
+ return str.replace(/[$`\\]/g, (c) => UNSAFE_CHAR_MAP[c]);
41
}
42
43
0 commit comments