1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-26 19:32:55 +08:00

Use ToUpperInvariant for added safety

Co-authored-by: Bartłomiej Dach <dach.bartlomiej@gmail.com>
This commit is contained in:
Dean Herbert 2022-10-21 00:16:33 +09:00 committed by GitHub
parent 677b8d09f8
commit 849b50a38f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -234,7 +234,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
X = 10,
Y = -1,
Font = OsuFont.Default.With(weight: FontWeight.Bold, size: 20),
Text = $"{char.ToUpper(sampleName.First())}"
Text = $"{char.ToUpperInvariant(sampleName.First())}"
}
}
};