diff options
Diffstat (limited to 'activesupport/lib/active_support/json/decoding.rb')
-rw-r--r-- | activesupport/lib/active_support/json/decoding.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/json/decoding.rb b/activesupport/lib/active_support/json/decoding.rb index 7d07a60e33..f24aa9e57c 100644 --- a/activesupport/lib/active_support/json/decoding.rb +++ b/activesupport/lib/active_support/json/decoding.rb @@ -43,7 +43,7 @@ module ActiveSupport end if marks.empty? - json + json.gsub(/\\\//, '/') else # FIXME: multiple slow enumerations output = ([0] + marks.map(&:succ)). @@ -51,6 +51,7 @@ module ActiveSupport map { |left, right| json[left..right] }. join(" ") times.each { |i| output[i-1] = ' ' } + output.gsub!(/\\\//, '/') output end end |