Skip to content

Commit

Permalink
Remove untested part from 9b9b293
Browse files Browse the repository at this point in the history
  • Loading branch information
lifo committed Mar 10, 2009
1 parent 9b9b293 commit affe501
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions activesupport/lib/active_support/json/decoding.rb
Expand Up @@ -58,16 +58,8 @@ def convert_json_to_yaml(json) #:nodoc:
right_pos = marks << scanner.pos + scanner.rest_size right_pos = marks << scanner.pos + scanner.rest_size
output = [] output = []
left_pos.each_with_index do |left, i| left_pos.each_with_index do |left, i|
output << json[left.succ..right_pos[i]].gsub(/\\([\\\/]|u[[:xdigit:]]{4})/) do scanner.pos = left.succ
ustr = $1 output << scanner.peek(right_pos[i] - scanner.pos + 1)
if ustr.starts_with?('u')
[ustr[1..-1].to_i(16)].pack("U")
elsif ustr == '\\'
'\\\\'
else
ustr
end
end
end end
output = output * " " output = output * " "


Expand Down

0 comments on commit affe501

Please sign in to comment.