From 5325e3a1e9971d8a8cccb3d705d560acd9f3ef72 Mon Sep 17 00:00:00 2001 From: hevinci Date: Sun, 3 Apr 2022 22:41:01 +0800 Subject: [PATCH] Update YooUtility.cs --- Assets/YooAsset/Runtime/Utility/YooUtility.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } } }