summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlin Bingham <cb@viennan.net>2018-05-08 04:02:41 +1200
committerOri Bernstein <ori@eigenstate.org>2018-05-07 11:13:59 -0700
commit003485264d138db7f41fcde610fa6cbc19944035 (patch)
treef3a7bcaf9e54a1363bf0842ce0ade1f67c016a56
parent78792ee3796ef75c10ecc635c2962dba9eb58203 (diff)
downloadmc-003485264d138db7f41fcde610fa6cbc19944035.tar.gz
libjson: allow square brackets in strings
-rw-r--r--lib/json/parse.myr4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/json/parse.myr b/lib/json/parse.myr
index 3b753a6..cf6eb21 100644
--- a/lib/json/parse.myr
+++ b/lib/json/parse.myr
@@ -354,8 +354,8 @@ const matchprefix = {p, pfx
const unescaped = {c
-> c == 0x20 || c == 0x21 || \
- (c >= 0x23 && c < 0x5b) || \
- (c > 0x5d && c <= 0x10ffff)
+ (c >= 0x23 && c <= 0x5b) || \
+ (c >= 0x5d && c <= 0x10ffff)
}
const takespace = {p