bylexus / fparse

A JavaScript Formula Parser
http://fparser.alexi.ch/
MIT License
90 stars 15 forks source link

Syntax error with `-z+t` #22

Closed valter1977 closed 2 years ago

valter1977 commented 2 years ago

Hello, For some reason, the parser doesn't like expression -z+t. However, -z is fine and z+t also works.

bylexus commented 2 years ago

Hi, Thanks, I will investigate in this. In the meantime, does (-z)+t work?

valter1977 commented 2 years ago

Yes, (-z)+t works indeed. Which is expected, as -z alone also works.

bylexus commented 2 years ago

I have fixed the issue in Version 2.0.2, hopefull this works for you now.