Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove untested part from 9b9b293

  • Loading branch information...
commit affe50105f7027a44eb6e9cfb56f5b3fc070b19b 1 parent 9b9b293
@lifo lifo authored
Showing with 2 additions and 10 deletions.
  1. +2 −10 activesupport/lib/active_support/json/decoding.rb
View
12 activesupport/lib/active_support/json/decoding.rb
@@ -58,16 +58,8 @@ def convert_json_to_yaml(json) #:nodoc:
right_pos = marks << scanner.pos + scanner.rest_size
output = []
left_pos.each_with_index do |left, i|
- output << json[left.succ..right_pos[i]].gsub(/\\([\\\/]|u[[:xdigit:]]{4})/) do
- ustr = $1
- if ustr.starts_with?('u')
- [ustr[1..-1].to_i(16)].pack("U")
- elsif ustr == '\\'
- '\\\\'
- else
- ustr
- end
- end
+ scanner.pos = left.succ
+ output << scanner.peek(right_pos[i] - scanner.pos + 1)
end
output = output * " "

0 comments on commit affe501

Please sign in to comment.
Something went wrong with that request. Please try again.