mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:20:04 +08:00
Don't truncate with exactly 128 bytes
This commit is contained in:
parent
bc0c331c33
commit
f1f9e1f658
@ -100,7 +100,7 @@ namespace osu.Desktop
|
||||
|
||||
private string truncate(ReadOnlySpan<char> str)
|
||||
{
|
||||
if (Encoding.UTF8.GetByteCount(str) < 128)
|
||||
if (Encoding.UTF8.GetByteCount(str) <= 128)
|
||||
return new string(str);
|
||||
|
||||
int ellipsisLength = Encoding.UTF8.GetByteCount(new[] { '…' });
|
||||
|
Loading…
Reference in New Issue
Block a user