Skip to content

Commit

Permalink
Batch Trade - allow just a space in between showdown sets instead of …
Browse files Browse the repository at this point in the history
…requiring a --- delimeter.
  • Loading branch information
bdawg1989 committed Jul 7, 2024
1 parent 656cfe7 commit 9f3e4f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SysBot.Pokemon.Discord/Commands/Bots/TradeModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ public async Task BatchTradeAsync([Summary("List of Showdown Sets separated by '

private static List<string> ParseBatchTradeContent(string content)
{
var delimiters = new[] { "---", "—-" }; // Includes both three hyphens and an em dash followed by a hyphen
var delimiters = new[] { "---", "—-", "\n\n" }; // Includes both three hyphens and an em dash followed by a hyphen for phone users, and just a normal space in between.
return content.Split(delimiters, StringSplitOptions.RemoveEmptyEntries)
.Select(trade => trade.Trim())
.ToList();
Expand Down

0 comments on commit 9f3e4f6

Please sign in to comment.