do not need to escape single quotes in JSON strings
commitbbdb5b96ca6ef77d3e686312bd9c5fc58351cb60
authorEvan Czaplicki <evancz@users.noreply.github.com>
dateMon 15 Jul 2019, 16:17 (7 years ago)
parent8b9ac19
compiler/src/Json/Encode.hs−1
@@ -119,7 +119,6 @@ escape chrs =
119119 | c == '\r' -> '\\' : 'r' : escape cs
120120 | c == '\n' -> '\\' : 'n' : escape cs
121121 | c == '\"' -> '\\' : '"' : escape cs
122− | c == '\'' -> '\\' : '\'' : escape cs
123122 | c == '\\' -> '\\' : '\\' : escape cs
124123 | otherwise -> c : escape cs
125124