Skip to content

Commit

Permalink
[opt] 检查 "##var" 之类的excel meta行时除去首尾的空白字符
Browse files Browse the repository at this point in the history
  • Loading branch information
pirunxi committed Apr 17, 2024
1 parent 0f92f4e commit a58d93a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Luban.DataLoader.Builtin/Excel/SheetLoadUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ private static bool TryFindTopTitle(List<List<Cell>> cells, out int rowIndex)
{
break;
}
string rowTag = row[0].Value?.ToString()?.ToLower() ?? "";
string rowTag = row[0].Value?.ToString()?.ToLower()?.Trim() ?? "";
if (!rowTag.StartsWith("##"))
{
break;
Expand Down Expand Up @@ -194,7 +194,7 @@ private static bool TryFindNextSubFieldRowIndex(List<List<Cell>> cells, int star
{
break;
}
string rowTag = row[0].Value?.ToString()?.ToLower() ?? "";
string rowTag = row[0].Value?.ToString()?.ToLower()?.Trim() ?? "";
if (rowTag == "##field" || rowTag == "##var" || rowTag == "##+")
{
rowIndex = i;
Expand Down

0 comments on commit a58d93a

Please sign in to comment.