From 2354949dd5f2dfbfd277e9e3a81960a8406b9ea2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=9E=97?= <10885740@QQ.com> Date: Tue, 29 Mar 2022 17:46:38 +0800 Subject: [PATCH] =?UTF-8?q?upd:=20server.properties=E4=B8=AD=E6=96=87?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E8=BD=AC=E6=8D=A2unicode=E7=BC=96=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/entity/instance/process_config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/entity/instance/process_config.ts b/src/entity/instance/process_config.ts index d7d373c..3622a55 100644 --- a/src/entity/instance/process_config.ts +++ b/src/entity/instance/process_config.ts @@ -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);