Skip to content

Commit

Permalink
Update src/Platform/Microsoft.Testing.Platform/ServerMode/JsonRpc/Jso…
Browse files Browse the repository at this point in the history
…n/Jsonite/Jsonite.cs

Co-authored-by: Youssef Victor <[email protected]>
  • Loading branch information
nohwnd and Youssef1313 authored Feb 25, 2025
1 parent db4e153 commit dffa522
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -973,6 +973,9 @@ private void WriteString(string text)
writer.Write('t');
break;
default:
// Intentionally diverging from the upstream code from xoofx/jsonite. See https://github.com/microsoft/testfx/issues/5120

// Also, https://datatracker.ietf.org/doc/html/rfc4627#section-2.5
if (c < ' ' || IsHighSurrogate(c) || IsLowSurrogate(c))
{
writer.Write('\\');
Expand Down

0 comments on commit dffa522

Please sign in to comment.