[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot] 2026-08-27 06:42:22 +00:00 committed by GitHub
parent 2d8dfee9f3
commit ebeb95cefd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 5 deletions

View File

@ -120,7 +120,16 @@ describe("getCreateEnvFileCommand", () => {
const out = execFileSync(
"docker",
["compose", "run", "--rm", "-T", "test", "sh", "-c", "printf '%s' \"$ASSET_URL\""],
[
"compose",
"run",
"--rm",
"-T",
"test",
"sh",
"-c",
"printf '%s' \"$ASSET_URL\"",
],
{ cwd: codePath, encoding: "utf8" },
);

View File

@ -548,10 +548,7 @@ export const prepareEnvironmentVariablesForFile = (
const escapedValue = value
.replace(/\\/g, "\\\\")
.replace(/"/g, '\\"')
.replace(
/\$(?!\{[A-Za-z_][A-Za-z0-9_]*(?::?[-+?][^}]*)?\})/g,
"\\$",
);
.replace(/\$(?!\{[A-Za-z_][A-Za-z0-9_]*(?::?[-+?][^}]*)?\})/g, "\\$");
return `${key}="${escapedValue}"`;
});
};