diff options
author | Jean Boussier <jean.boussier@gmail.com> | 2020-01-30 12:48:05 +0100 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-09-25 17:28:42 +0900 |
commit | e1659af3724e2320e9f2f2bd7cf602686e8aa523 (patch) | |
tree | d97e3f3fef7109a3ebea4e8c39352fe89a0c6cd0 /test/json/json_parser_test.rb | |
parent | c5ea060ef8cd6c0de9987d1a3546b79e99ebb35c (diff) | |
download | ruby-e1659af3724e2320e9f2f2bd7cf602686e8aa523.tar.gz |
Add an option to escape forward slash character
Squashed commit of the following:
commit 26d181059989279a79c433cedcd893b4f52e42ee
Author: Francois Chagnon <francois.chagnon@jadedpixel.com>
Date: Tue Sep 15 21:17:34 2015 +0000
add config options for escape_slash
commit fa282334051b16df91ca097dd7304b46f3bc7719
Author: Francois Chagnon <francois.chagnon@jadedpixel.com>
Date: Mon Feb 9 21:09:33 2015 +0000
add forward slash to escape character
Diffstat (limited to 'test/json/json_parser_test.rb')
-rw-r--r-- | test/json/json_parser_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/json/json_parser_test.rb b/test/json/json_parser_test.rb index 9946dd93e7..514441efce 100644 --- a/test/json/json_parser_test.rb +++ b/test/json/json_parser_test.rb @@ -293,6 +293,10 @@ EOT json = '["\\\'"]' data = ["'"] assert_equal data, parse(json) + + json = '["\/"]' + data = [ '/' ] + assert_equal data, parse(json) end class SubArray < Array |