修复双引号转义逻辑

This commit is contained in:
JerryWn 2022-04-18 22:49:05 +08:00 committed by GitHub
parent ce2a7436f8
commit 6cd5db5a6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -168,7 +168,7 @@ export default class EnvService {
.filter((x) => x.status !== EnvStatus.disabled)
.map('value')
.join('&')
.replace(/"/g, '\\"')
.replace(/"/g, '\"')
.trim();
env_string += `export ${key}="${value}"\n`;
}