forked from mirror/MCSM-Daemon
upd: server.properties中文自动转换unicode编码
This commit is contained in:
parent
46ac2f9bb6
commit
2354949dd5
@ -67,6 +67,9 @@ export class ProcessConfig {
|
||||
if (this.iProcessConfig.type === "properties") {
|
||||
text = properties.stringify(object);
|
||||
text = text.replace(/ = /gim, "=");
|
||||
if (this.iProcessConfig.fileName == "server.properties") {
|
||||
text = text.replace(/\\\\u/gim, "\\u");
|
||||
}
|
||||
}
|
||||
if (this.iProcessConfig.type === "json") {
|
||||
text = JSON.stringify(object);
|
||||
|
Loading…
Reference in New Issue
Block a user