Fix critical bug in TextHelper

This commit is contained in:
Matt Nadareski
2024-10-27 23:21:41 -04:00
parent d21fb0c666
commit 349346309a

View File

@@ -176,9 +176,9 @@ namespace SabreTools.Core.Tools
// Otherwise, make sure that every character is a proper match
#if NET7_0_OR_GREATER
if (hash.Any(c => char.IsAsciiHexDigit(c)))
if (!hash.Any(c => char.IsAsciiHexDigit(c)))
#else
if (hash.Any(c => c.IsAsciiHexDigit()))
if (!hash.Any(c => c.IsAsciiHexDigit()))
#endif
hash = string.Empty;