From ee142add229cbcd58bc76d59f23e02517df14379 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 11 Jan 2017 21:50:08 +0100 Subject: patch 8.0.0171: JS style JSON does not support single quotes Problem: JS style JSON does not support single quotes. Solution: Allow for single quotes. (Yasuhiro Matsumoto, closes #1371) --- src/json_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/json_test.c') diff --git a/src/json_test.c b/src/json_test.c index 1a1fdcbad..74463f3d2 100644 --- a/src/json_test.c +++ b/src/json_test.c @@ -181,7 +181,7 @@ test_fill_called_on_string(void) reader.js_buf = (char_u *)" \"foo"; reader.js_end = reader.js_buf + STRLEN(reader.js_buf); reader.js_cookie = " \"foobar\" "; - assert(json_decode_string(&reader, NULL) == OK); + assert(json_decode_string(&reader, NULL, '"') == OK); } #endif -- cgit v1.2.1