From 89b7afd3964555013b8fd2fcc1ff6301a0d34677 Mon Sep 17 00:00:00 2001 From: dmitry kim Date: Thu, 14 Mar 2024 22:00:21 +0100 Subject: [PATCH] escape-chars: handle backslashes --- src/graphql_query/core.cljc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphql_query/core.cljc b/src/graphql_query/core.cljc index b2b8b83..4666814 100644 --- a/src/graphql_query/core.cljc +++ b/src/graphql_query/core.cljc @@ -26,7 +26,7 @@ (apply str))) (defn escape-chars [s] - (clojure.string/escape s {\" "\\\""})) + (clojure.string/escape s {\" "\\\"" \\ "\\\\"})) (defn sequential->str "Given something that is sequential format it to be like a JSON array."