Browse Source

卡擦掉表名空格

hexiaojie 1 year ago
parent
commit
fd322571d8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      GameClient/Assets/Editor/Excel/ExcelReader.cs

+ 1 - 1
GameClient/Assets/Editor/Excel/ExcelReader.cs

@@ -23,7 +23,7 @@ namespace GFGEditor
             for (int i = 0; i < totalCount; i++)
             for (int i = 0; i < totalCount; i++)
             {
             {
                 string filePath = files[i];
                 string filePath = files[i];
-                string fileName = Path.GetFileNameWithoutExtension(filePath);
+                string fileName = Path.GetFileNameWithoutExtension(filePath).Trim();
                 if (!fileName.Contains("~") && !fileName.StartsWith(".") && fileName != "")
                 if (!fileName.Contains("~") && !fileName.StartsWith(".") && fileName != "")
                 {
                 {
                     EditorUtility.DisplayProgressBar("进度", $"fileNmae{fileName}", 1);
                     EditorUtility.DisplayProgressBar("进度", $"fileNmae{fileName}", 1);