From 4f66b013943cd715b7fe829f1a9d7b22f63e0927 Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Tue, 22 Aug 2023 07:58:46 +1000 Subject: [PATCH] fix spelling --- .github/actions/spelling/expect.txt | 5 +++++ .../Flow.Launcher.Plugin.PluginsManager/PluginsManager.cs | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/actions/spelling/expect.txt b/.github/actions/spelling/expect.txt index 4c768649e..d0fee9559 100644 --- a/.github/actions/spelling/expect.txt +++ b/.github/actions/spelling/expect.txt @@ -104,3 +104,8 @@ Português (Brasil) Italiano Slovenský Droplex +Preinstalled +errormetadatafile +noresult +pluginsmanager +alreadyexists \ No newline at end of file diff --git a/Plugins/Flow.Launcher.Plugin.PluginsManager/PluginsManager.cs b/Plugins/Flow.Launcher.Plugin.PluginsManager/PluginsManager.cs index f95d531af..683904ea0 100644 --- a/Plugins/Flow.Launcher.Plugin.PluginsManager/PluginsManager.cs +++ b/Plugins/Flow.Launcher.Plugin.PluginsManager/PluginsManager.cs @@ -332,9 +332,9 @@ namespace Flow.Launcher.Plugin.PluginsManager { var author = url.Split('/')[3]; var acceptedSource = "https://github.com"; - var contructedUrlPart = string.Format("{0}/{1}/", acceptedSource, author); + var constructedUrlPart = string.Format("{0}/{1}/", acceptedSource, author); - return url.StartsWith(acceptedSource) && Context.API.GetAllPlugins().Any(x => x.Metadata.Website.StartsWith(contructedUrlPart)); + return url.StartsWith(acceptedSource) && Context.API.GetAllPlugins().Any(x => x.Metadata.Website.StartsWith(constructedUrlPart)); } internal async ValueTask> RequestInstallOrUpdate(string search, CancellationToken token, bool usePrimaryUrlOnly = false)