mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-24 07:16:08 +08:00
修复环境变量转义
This commit is contained in:
parent
03e6f18e54
commit
5dbfc65e7f
|
@ -168,7 +168,9 @@ export default class EnvService {
|
||||||
.filter((x) => x.status !== EnvStatus.disabled)
|
.filter((x) => x.status !== EnvStatus.disabled)
|
||||||
.map('value')
|
.map('value')
|
||||||
.join('&')
|
.join('&')
|
||||||
.replace(/"/g, '\"')
|
.replace(/(\\)[^\n]/g, '\\\\')
|
||||||
|
.replace(/(\\$)/, '\\\\')
|
||||||
|
.replace(/"/g, '\\"')
|
||||||
.trim();
|
.trim();
|
||||||
env_string += `export ${key}="${value}"\n`;
|
env_string += `export ${key}="${value}"\n`;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user