Ignore case sensitivity during message comparison

Co-authored-by: Dan Balasescu <smoogipoo@smgi.me>
This commit is contained in:
Salman Ahmed 2022-09-22 13:21:27 +03:00 committed by GitHub
parent 794a131954
commit fd92bcdff2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1042,7 +1042,7 @@ namespace osu.Game
Logger.NewEntry += entry =>
{
if (entry.Level < LogLevel.Important || entry.Target != LoggingTarget.Input || !entry.Message.StartsWith(tablet_prefix, StringComparison.Ordinal))
if (entry.Level < LogLevel.Important || entry.Target != LoggingTarget.Input || !entry.Message.StartsWith(tablet_prefix, StringComparison.OrdinalIgnoreCase))
return;
string message = entry.Message.Replace(tablet_prefix, string.Empty);