mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-27 03:10:11 +00:00
修复报错 (#293)
This commit is contained in:
@@ -21,7 +21,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
public static bool NeedFormat(string content)
|
public static bool NeedFormat(string content)
|
||||||
{
|
{
|
||||||
return content.IndexOf('{') >= 0;
|
return !string.IsNullOrEmpty(content) && content.IndexOf('{') >= 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user