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

Error then parsing number with minus sign #80

@RANUX

Description

@RANUX

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions