From 0ec6027a93de73085b115fc88d1d65e56e623e72 Mon Sep 17 00:00:00 2001 From: Lucas LaBuff Date: Mon, 26 Apr 2021 12:37:37 -0400 Subject: [PATCH] Escape brackets in category name in CLI (#558) --- DiscordChatExporter.Cli/Commands/Base/ExportCommandBase.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DiscordChatExporter.Cli/Commands/Base/ExportCommandBase.cs b/DiscordChatExporter.Cli/Commands/Base/ExportCommandBase.cs index 6cc6c4c..eb28312 100644 --- a/DiscordChatExporter.Cli/Commands/Base/ExportCommandBase.cs +++ b/DiscordChatExporter.Cli/Commands/Base/ExportCommandBase.cs @@ -14,6 +14,7 @@ using DiscordChatExporter.Core.Exceptions; using DiscordChatExporter.Core.Exporting; using DiscordChatExporter.Core.Exporting.Partitioning; using DiscordChatExporter.Core.Utils.Extensions; +using Spectre.Console; using Tyrrrz.Extensions; namespace DiscordChatExporter.Cli.Commands.Base @@ -64,7 +65,7 @@ namespace DiscordChatExporter.Cli.Commands.Base // Export try { - await progressContext.StartTaskAsync($"{channel.Category} / {channel.Name}", async progress => + await progressContext.StartTaskAsync(Markup.Escape($"{channel.Category} / {channel.Name}"), async progress => { var guild = await Discord.GetGuildAsync(channel.GuildId);