aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-12-02 10:49:49 +0000
committergingerBill <bill@gingerbill.org>2024-12-02 10:49:49 +0000
commitd0f87913e2133b8101faef6ea76e0853d4da524b (patch)
tree17e198408e044cae78f190cd0fb936b6a4e0e146
parent03a53ccce2ada65c3179328ddcb00bb2b990d3db (diff)
Fix #4549
-rw-r--r--core/encoding/json/tokenizer.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/encoding/json/tokenizer.odin b/core/encoding/json/tokenizer.odin
index 5c20a2cc3..1a57ba6f0 100644
--- a/core/encoding/json/tokenizer.odin
+++ b/core/encoding/json/tokenizer.odin
@@ -485,7 +485,7 @@ is_valid_string_literal :: proc(str: string, spec: Specification) -> bool {
case '"':
// okay
case '\'':
- if spec != .JSON {
+ if spec == .JSON {
return false
}
// okay