修复环境变量内部空格被替换的问题

This commit is contained in:
JerryWn 2022-04-18 17:27:47 +08:00 committed by GitHub
parent ed2007544e
commit a4c75927a8
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) .filter((x) => x.status !== EnvStatus.disabled)
.map('value') .map('value')
.join('&') .join('&')
.replace(/ /g, ''); .trim();
if (/"/.test(value)) { if (/"/.test(value)) {
if (/'/.test(value)) { if (/'/.test(value)) {
if (value.indexOf("'") < value.indexOf('"')) { if (value.indexOf("'") < value.indexOf('"')) {