From a752ef543c27606f37979d8976005fce8e81d090 Mon Sep 17 00:00:00 2001 From: yaodeshun Date: Mon, 13 Oct 2025 11:00:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AD=A3=E5=88=99=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package/gamelog/sdk.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/package/gamelog/sdk.go b/package/gamelog/sdk.go index cc25eaa..be77f94 100644 --- a/package/gamelog/sdk.go +++ b/package/gamelog/sdk.go @@ -69,9 +69,7 @@ var ( ) var safePropertyRE = regexp.MustCompile( - `["'\\\/]` + - `|\\U[0-9a-fA-F]{8}` + // Unicode 8位转义 - `|\\u[0-9a-fA-F]{4}` + // Unicode 4位转义 + `["'\\\/\s]` + `|\\[tnrfbv\\]` + // 转义字面量 `|[\x00-\x1F\x7F-\x9F]` + // ASCII + C1 控制字符 `|[\\u200B-\\u200D\\uFEFF]`, // 零宽字符