fix spelling

This commit is contained in:
Jeremy Wu 2023-08-22 07:58:46 +10:00
parent a27e98b0d7
commit 4f66b01394
2 changed files with 7 additions and 2 deletions

View file

@ -104,3 +104,8 @@ Português (Brasil)
Italiano
Slovenský
Droplex
Preinstalled
errormetadatafile
noresult
pluginsmanager
alreadyexists

View file

@ -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<List<Result>> RequestInstallOrUpdate(string search, CancellationToken token, bool usePrimaryUrlOnly = false)