summaryrefslogtreecommitdiff
path: root/src/SMAPI.Mods.ConsoleCommands/Framework/ItemData/SearchableItem.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI.Mods.ConsoleCommands/Framework/ItemData/SearchableItem.cs')
-rw-r--r--src/SMAPI.Mods.ConsoleCommands/Framework/ItemData/SearchableItem.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/SMAPI.Mods.ConsoleCommands/Framework/ItemData/SearchableItem.cs b/src/SMAPI.Mods.ConsoleCommands/Framework/ItemData/SearchableItem.cs
index b618a308..d9e63126 100644
--- a/src/SMAPI.Mods.ConsoleCommands/Framework/ItemData/SearchableItem.cs
+++ b/src/SMAPI.Mods.ConsoleCommands/Framework/ItemData/SearchableItem.cs
@@ -44,8 +44,8 @@ namespace StardewModdingAPI.Mods.ConsoleCommands.Framework.ItemData
public bool NameContains(string substring)
{
return
- this.Name.IndexOf(substring, StringComparison.InvariantCultureIgnoreCase) != -1
- || this.DisplayName.IndexOf(substring, StringComparison.InvariantCultureIgnoreCase) != -1;
+ this.Name.IndexOf(substring, StringComparison.OrdinalIgnoreCase) != -1
+ || this.DisplayName.IndexOf(substring, StringComparison.OrdinalIgnoreCase) != -1;
}
/// <summary>Get whether the item name is exactly equal to a case-insensitive string.</summary>
@@ -53,8 +53,8 @@ namespace StardewModdingAPI.Mods.ConsoleCommands.Framework.ItemData
public bool NameEquivalentTo(string name)
{
return
- this.Name.Equals(name, StringComparison.InvariantCultureIgnoreCase)
- || this.DisplayName.Equals(name, StringComparison.InvariantCultureIgnoreCase);
+ this.Name.Equals(name, StringComparison.OrdinalIgnoreCase)
+ || this.DisplayName.Equals(name, StringComparison.OrdinalIgnoreCase);
}
}
}