mirror of https://github.com/ppy/osu
Ignore casing when matching mods acronyms
This commit is contained in:
parent
50be7fb077
commit
372162de5d
|
@ -101,7 +101,7 @@ public IEnumerable<Mod> CreateAllMods() => Enum.GetValues<ModType>()
|
|||
/// <param name="acronym">The acronym to query for .</param>
|
||||
public Mod? CreateModFromAcronym(string acronym)
|
||||
{
|
||||
return AllMods.FirstOrDefault(m => m.Acronym == acronym)?.CreateInstance();
|
||||
return AllMods.FirstOrDefault(m => string.Equals(m.Acronym, acronym, StringComparison.OrdinalIgnoreCase))?.CreateInstance();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in New Issue