Skip to content
This repository has been archived by the owner on May 23, 2019. It is now read-only.

Error then parsing number with minus sign #80

Open
RANUX opened this issue Jun 6, 2017 · 0 comments
Open

Error then parsing number with minus sign #80

RANUX opened this issue Jun 6, 2017 · 0 comments
Labels

Comments

@RANUX
Copy link

RANUX commented Jun 6, 2017

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
@nicolewhite nicolewhite added the bug label Jun 8, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants