summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Framework/Clients/GitHub
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-07-26 02:50:20 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-07-26 02:50:20 -0400
commit7900a84bd68d7c9450bba719ce925b61043875f3 (patch)
tree8c495b7fe1c29c0cb552dc657a7a8b61185be0bd /src/SMAPI.Web/Framework/Clients/GitHub
parentee4c88f6016b6bc0d72e0d459f6b918bdd7728f3 (diff)
downloadSMAPI-7900a84bd68d7c9450bba719ce925b61043875f3.tar.gz
SMAPI-7900a84bd68d7c9450bba719ce925b61043875f3.tar.bz2
SMAPI-7900a84bd68d7c9450bba719ce925b61043875f3.zip
use ordinal comparison/sorting instead of invariant
Diffstat (limited to 'src/SMAPI.Web/Framework/Clients/GitHub')
-rw-r--r--src/SMAPI.Web/Framework/Clients/GitHub/GitHubClient.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI.Web/Framework/Clients/GitHub/GitHubClient.cs b/src/SMAPI.Web/Framework/Clients/GitHub/GitHubClient.cs
index 2f1eb854..671f077c 100644
--- a/src/SMAPI.Web/Framework/Clients/GitHub/GitHubClient.cs
+++ b/src/SMAPI.Web/Framework/Clients/GitHub/GitHubClient.cs
@@ -150,7 +150,7 @@ namespace StardewModdingAPI.Web.Framework.Clients.GitHub
/// <exception cref="ArgumentException">The repository key is invalid.</exception>
private void AssertKeyFormat(string repo)
{
- if (repo == null || !repo.Contains("/") || repo.IndexOf("/", StringComparison.InvariantCultureIgnoreCase) != repo.LastIndexOf("/", StringComparison.InvariantCultureIgnoreCase))
+ if (repo == null || !repo.Contains("/") || repo.IndexOf("/", StringComparison.OrdinalIgnoreCase) != repo.LastIndexOf("/", StringComparison.OrdinalIgnoreCase))
throw new ArgumentException($"The value '{repo}' isn't a valid GitHub repository key, must be a username and project name like 'Pathoschild/SMAPI'.", nameof(repo));
}
}