aichaos / rivescript-js

A RiveScript interpreter for JavaScript. RiveScript is a scripting language for chatterbots.
https://www.rivescript.com/
MIT License
377 stars 145 forks source link

Number(existingNumber...) #382

Closed j2l closed 2 years ago

j2l commented 2 years ago

It fixes issues with math functions. See https://github.com/aichaos/rivescript-js/issues/381 I guess the tests are done with another language that transform strings to numbers automatically while JS keeps them as string?

kirsle commented 2 years ago

Thanks for this! It seems the bug was introduced in #377 when the math tags were refactored.

j2l commented 2 years ago

You're welcome!