From 7ea260b9868ab91ebe0c39d66da92af759fdeb57 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Sat, 25 Nov 2023 21:57:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8A=A5=E9=94=99=20(#293)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/Helper/FormatterHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/Helper/FormatterHelper.cs b/Runtime/Helper/FormatterHelper.cs index 250a8359..893b8857 100644 --- a/Runtime/Helper/FormatterHelper.cs +++ b/Runtime/Helper/FormatterHelper.cs @@ -21,7 +21,7 @@ namespace XCharts.Runtime public static bool NeedFormat(string content) { - return content.IndexOf('{') >= 0; + return !string.IsNullOrEmpty(content) && content.IndexOf('{') >= 0; } ///