替换转义字符
This commit is contained in:
@@ -74,7 +74,7 @@ var safePropertyRE = regexp.MustCompile(
|
|||||||
`|\\u[0-9a-fA-F]{4}` + // Unicode 4位转义
|
`|\\u[0-9a-fA-F]{4}` + // Unicode 4位转义
|
||||||
`|\\[tnrfbv\\]` + // 转义字面量
|
`|\\[tnrfbv\\]` + // 转义字面量
|
||||||
`|[\x00-\x1F\x7F-\x9F]` + // ASCII + C1 控制字符
|
`|[\x00-\x1F\x7F-\x9F]` + // ASCII + C1 控制字符
|
||||||
`|[\u200B-\u200D\uFEFF]`, // 零宽字符
|
`|[\\u200B-\\u200D\\uFEFF]`, // 零宽字符
|
||||||
)
|
)
|
||||||
|
|
||||||
func safeProperty(property map[string]any) {
|
func safeProperty(property map[string]any) {
|
||||||
|
|||||||
Reference in New Issue
Block a user