diff --git a/Assets/YooAsset/Runtime/Utility/YooUtility.cs b/Assets/YooAsset/Runtime/Utility/YooUtility.cs index dd70302..6dea756 100644 --- a/Assets/YooAsset/Runtime/Utility/YooUtility.cs +++ b/Assets/YooAsset/Runtime/Utility/YooUtility.cs @@ -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); } } }