Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
rampaa committed Jan 28, 2024
1 parent 6f35f40 commit 9cc70c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JL.Core/Utilities/TextUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ private static string RemoveInvalidUnicodeSequences(string text, int index)
_ = sb.Append(c);
}

else if (c is '\uFFFD' or '\uFFFE' or '\uFFFF' && !char.IsLowSurrogate(c))
else if (c is not '\uFFFD' and not '\uFFFE' and not '\uFFFF' && !char.IsLowSurrogate(c))
{
if (char.IsHighSurrogate(c))
{
Expand Down

0 comments on commit 9cc70c1

Please sign in to comment.