From f994ebdb531f67c6b1c84cfbad16829db9803fdb Mon Sep 17 00:00:00 2001 From: bluwy Date: Mon, 15 May 2023 06:37:46 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/runtime/server/render/util.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/astro/src/runtime/server/render/util.ts b/packages/astro/src/runtime/server/render/util.ts index fcf9ee7226b8..37008abbb769 100644 --- a/packages/astro/src/runtime/server/render/util.ts +++ b/packages/astro/src/runtime/server/render/util.ts @@ -43,7 +43,10 @@ export function defineScriptVars(vars: Record) { for (const [key, value] of Object.entries(vars)) { // Use const instead of let as let global unsupported with Safari // https://stackoverflow.com/questions/29194024/cant-use-let-keyword-in-safari-javascript - output += `const ${toIdent(key)} = ${JSON.stringify(value).replace(/<\/script>/g, "\\x3C/script>")};\n`; + output += `const ${toIdent(key)} = ${JSON.stringify(value).replace( + /<\/script>/g, + '\\x3C/script>' + )};\n`; } return markHTMLString(output); }