From a49a57b96411fd3549248cdf3ce335f0a0de094e Mon Sep 17 00:00:00 2001 From: Shigma <1700011071@pku.edu.cn> Date: Wed, 12 Aug 2020 12:23:48 +0800 Subject: [PATCH] adjust unescape order --- coolq/cqcode.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coolq/cqcode.go b/coolq/cqcode.go index 47bc99d..f885439 100644 --- a/coolq/cqcode.go +++ b/coolq/cqcode.go @@ -414,7 +414,7 @@ func CQCodeUnescapeText(content string) string { } func CQCodeUnescapeValue(content string) string { - ret := CQCodeUnescapeText(content) - ret = strings.ReplaceAll(ret, ",", ",") + ret := strings.ReplaceAll(content, ",", ",") + ret = CQCodeUnescapeText(ret) return ret }