Sync with Latest HTML5lib

Some more tweaks
This commit is contained in:
Jacques Distler 2007-06-06 08:12:03 -05:00
parent fd183eac04
commit 8846b2cda5
5 changed files with 48 additions and 27 deletions

View file

@ -15,7 +15,7 @@ begin
rescue LoadError
class JSON
def self.parse json
json.gsub! /"\s*:/, '"=>'
json.gsub!(/"\s*:/, '"=>')
json.gsub!(/\\u[0-9a-fA-F]{4}/) {|x| [x[2..-1].to_i(16)].pack('U')}
eval json
end