From 711baec9b6251ef2666e2df6e85ab01a1cec2773 Mon Sep 17 00:00:00 2001 From: Aireil <33433913+Aireil@users.noreply.github.com> Date: Mon, 11 Oct 2021 20:25:45 +0200 Subject: [PATCH] fix: trim spaces at the end of repo url --- Dalamud/Interface/Internal/Windows/SettingsWindow.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Dalamud/Interface/Internal/Windows/SettingsWindow.cs b/Dalamud/Interface/Internal/Windows/SettingsWindow.cs index 85df3e8bd..300539a33 100644 --- a/Dalamud/Interface/Internal/Windows/SettingsWindow.cs +++ b/Dalamud/Interface/Internal/Windows/SettingsWindow.cs @@ -448,6 +448,7 @@ namespace Dalamud.Interface.Internal.Windows ImGui.NextColumn(); if (!string.IsNullOrEmpty(this.thirdRepoTempUrl) && ImGuiComponents.IconButton(FontAwesomeIcon.Plus)) { + this.thirdRepoTempUrl = this.thirdRepoTempUrl.TrimEnd(); if (this.thirdRepoList.Any(r => string.Equals(r.Url, this.thirdRepoTempUrl, StringComparison.InvariantCultureIgnoreCase))) { this.thirdRepoAddError = Loc.Localize("DalamudThirdRepoExists", "Repo already exists.");