修复环境变量转义

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

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();

View File

@ -39,7 +39,7 @@ RUN set -x \
&& echo "Asia/Shanghai" > /etc/timezone \
&& git config --global user.email "qinglong@@users.noreply.github.com" \
&& git config --global user.name "qinglong" \
&& git config http.postBuffer 524288000 \
&& git config --global http.postBuffer 524288000 \
&& npm install -g pnpm \
&& pnpm add -g pm2 ts-node typescript tslib \
&& git clone -b ${QL_BRANCH} ${QL_URL} ${QL_DIR} \