Skip to content

Commit

Permalink
feat: remove trailing dash from the name filter
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Rouse <alex@leronix.net>
  • Loading branch information
bladuk and iamalexrouse authored Sep 27, 2024
1 parent de18bdf commit 3ab0055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EXILED/Exiled.Events/Commands/Hub/Install.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out s
releaseToDownload = foundRelease;
}

ReleaseAsset[] releaseAssets = releaseToDownload.Assets.Where(x => x.Name.IndexOf("-nwapi", StringComparison.OrdinalIgnoreCase) == -1).ToArray();
ReleaseAsset[] releaseAssets = releaseToDownload.Assets.Where(x => x.Name.IndexOf("nwapi", StringComparison.OrdinalIgnoreCase) == -1).ToArray();

Log.Info($"Downloading release \"{releaseToDownload.TagName}\". Found {releaseAssets.Length} asset(s) to download.");

Expand Down

0 comments on commit 3ab0055

Please sign in to comment.