Use extended check in slow path too

This commit is contained in:
Matt Nadareski
2025-09-21 16:07:20 -04:00
parent 630b01283e
commit 843e821e5f

View File

@@ -147,7 +147,7 @@ namespace SabreTools.IO.Extensions
char c = (char)reader.Read();
// If the character is invalid
if (char.IsControl(c) || (c & 0xFF00) != 0)
if (char.IsControl(c) || (c & 0xFFFFFF00) != 0)
{
// Seek to the end of the last found string
string str = sb.ToString();