mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 18:40:37 +08:00
修复replaceAll方法
This commit is contained in:
1 parent
49088f0d3a
commit
b78b382ba1
1 file changed
+1
-1
@@ -220,7 +220,7 @@ export default class EnvService {
|
|||||||
const group = groups[key];
|
const group = groups[key];
|
||||||
env_string += `export ${key}="${_.map(group, 'value')
|
env_string += `export ${key}="${_.map(group, 'value')
|
||||||
.join('&')
|
.join('&')
|
||||||
.replaceAll(' ', '')}"\n`;
|
.replace(/ /g, '')}"\n`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fs.writeFileSync(config.envFile, env_string);
|
fs.writeFileSync(config.envFile, env_string);
|
||||||
|
|||||||
Reference in new issue
Block a user