Error then parsing number with minus sign
RANUX opened this issue · 0 comments
RANUX commented
I've got strange error then try to parse simple equation:
algebra.parse('(1 - 2 / 1) / -1')
algebra-js.js?hash=2231f8b…:29 Uncaught TypeError: Cannot read property 'terms' of undefined
at a.convertToFraction (algebra-js.js?hash=2231f8b…:29)
at a.parseTermRest (algebra-js.js?hash=2231f8b…:29)
at a.parseTerm (algebra-js.js?hash=2231f8b…:29)
at a.parseExpr (algebra-js.js?hash=2231f8b…:29)
at a.parseEqn (algebra-js.js?hash=2231f8b…:29)
at a.parse (algebra-js.js?hash=2231f8b…:29)
at Object.a [as parse] (algebra-js.js?hash=2231f8b…:29)
at <anonymous>:1:9