Skip to content

Commit cba2e8e

Browse files
Copilotxperiandri
andcommitted
Fix trailing whitespace in string escaping code
Agent-Logs-Url: https://github.com/fsprojects/FSharp.Data.GraphQL/sessions/ce0fba11-9043-452f-b948-e03c8b644f26 Co-authored-by: xperiandri <2365592+xperiandri@users.noreply.github.com>
1 parent cdee804 commit cba2e8e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/FSharp.Data.GraphQL.Shared/AstExtensions.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,14 @@ type Document with
110110
for c in s do
111111
let appendStr =
112112
match c with
113-
| '"' -> "\\\""
113+
| '"' -> "\\\""
114114
| '\\' -> "\\\\"
115115
| '\b' -> "\\b"
116116
| '\f' -> "\\f"
117117
| '\n' -> "\\n"
118118
| '\r' -> "\\r"
119119
| '\t' -> "\\t"
120-
| c when c < '\u0020' ->
120+
| c when c < '\u0020' ->
121121
let hex = (int c).ToString("X4", CultureInfo.InvariantCulture)
122122
"\\u" + hex
123123
| c -> string c

0 commit comments

Comments
 (0)