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