diff options
author | 2023-05-15 06:37:46 +0000 | |
---|---|---|
committer | 2023-05-15 06:37:46 +0000 | |
commit | f994ebdb531f67c6b1c84cfbad16829db9803fdb (patch) | |
tree | bc68f29a80eac88e234a3d3d411e2e3aa2c2a714 | |
parent | 914c439bccee9fec002c6d92beaa501c398e62ac (diff) | |
download | astro-f994ebdb531f67c6b1c84cfbad16829db9803fdb.tar.gz astro-f994ebdb531f67c6b1c84cfbad16829db9803fdb.tar.zst astro-f994ebdb531f67c6b1c84cfbad16829db9803fdb.zip |
[ci] format
-rw-r--r-- | packages/astro/src/runtime/server/render/util.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/astro/src/runtime/server/render/util.ts b/packages/astro/src/runtime/server/render/util.ts index fcf9ee722..37008abbb 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<any, any>) { 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); } |