Escape brackets in category name in CLI (#558)

This commit is contained in:
Lucas LaBuff 2021-04-26 12:37:37 -04:00 committed by GitHub
parent eb49d0bd16
commit 0ec6027a93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);