From 1ff026eba6361d1031425d5bcf1c2fd49a08467c Mon Sep 17 00:00:00 2001 From: Alexey Golub Date: Wed, 29 Jul 2020 20:58:49 +0300 Subject: [PATCH] [GUI] Trim spaces in token input --- DiscordChatExporter.Gui/ViewModels/RootViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DiscordChatExporter.Gui/ViewModels/RootViewModel.cs b/DiscordChatExporter.Gui/ViewModels/RootViewModel.cs index 1aa6990..75a9fb5 100644 --- a/DiscordChatExporter.Gui/ViewModels/RootViewModel.cs +++ b/DiscordChatExporter.Gui/ViewModels/RootViewModel.cs @@ -134,7 +134,7 @@ namespace DiscordChatExporter.Gui.ViewModels try { - var tokenValue = TokenValue?.Trim('"'); + var tokenValue = TokenValue?.Trim('"', ' '); if (string.IsNullOrWhiteSpace(tokenValue)) return;