Update YooUtility.cs

pull/4/head
hevinci 2022-04-03 22:41:01 +08:00
parent 8ad3ac0407
commit 5325e3a1e9
1 changed files with 3 additions and 2 deletions

View File

@ -200,9 +200,10 @@ namespace YooAsset
string[] splits = str.Split(separator);
foreach (string split in splits)
{
if (!String.IsNullOrEmpty(split))
string value = split.Trim(); //移除首尾空格
if (!String.IsNullOrEmpty(value))
{
result.Add(split);
result.Add(value);
}
}
}