修复环境变量转义

This commit is contained in:
whyour
2022-07-31 15:35:13 +08:00
parent f123c0bfe1
commit 7bbc776759
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -168,7 +168,7 @@ export default class EnvService {
.filter((x) => x.status !== EnvStatus.disabled)
.map('value')
.join('&')
.replace(/(\\)[^\n]/g, '\\\\')
.replace(/(\\)[^n]/g, '\\\\')
.replace(/(\\$)/, '\\\\')
.replace(/"/g, '\\"')
.trim();