lib/raven/okjson.rb in sentry-raven-0.6.1 vs lib/raven/okjson.rb in sentry-raven-0.7.1
- old
+ new
@@ -269,12 +269,11 @@
if !m[2] && !m[3]
[:val, m[0], Integer(m[0])]
elsif m[2]
[:val, m[0], Float(m[0])]
else
- # We don't convert scientific notation
- [:val, m[0], m[0]]
+ [:val, m[0], Integer(m[1])*(10**Integer(m[3][1..-1]))]
end
else
[]
end
end
@@ -602,6 +601,7 @@
Usurr3 = 0xe000
Spc = ' '[0]
Unesc = {?b=>?\b, ?f=>?\f, ?n=>?\n, ?r=>?\r, ?t=>?\t}
end
+
end