diff --git a/src/js/amount.js b/src/js/amount.js index 84e3716c..97b01900 100644 --- a/src/js/amount.js +++ b/src/js/amount.js @@ -1025,7 +1025,7 @@ Amount.prototype.parse_value = function (j) { else if ('string' === typeof j) { var i = j.match(/^(-?)(\d+)$/); var d = !i && j.match(/^(-?)(\d+)\.(\d*)$/); - var e = !e && j.match(/^(-?)(\d+)e(\d+)$/); + var e = !e && j.match(/^(-?)(\d+)e(-?\d+)$/); if (e) { // e notation