Skip to content

Commit

Permalink
SplitBraceの修正
Browse files Browse the repository at this point in the history
  • Loading branch information
TakenPt committed Mar 3, 2024
1 parent 73f9424 commit 326914a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Epub/KoeBook.Epub/Utility/ScrapingHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,9 @@ public static List<string> SplitBrace(string text)
startIdx = i + 1;
}
}
result.Add(text[startIdx..]);
if (result[^1] == "")
if (startIdx != brackets.Length)
{
result.RemoveAt(result.Count - 1);
result.Add(text[startIdx..]);
}

return result;
Expand Down

0 comments on commit 326914a

Please sign in to comment.