aichaos / rivescript-go

A RiveScript interpreter for Go. RiveScript is a scripting language for chatterbots.
https://www.rivescript.com/
MIT License
60 stars 16 forks source link

+ # + # is not matching #36

Closed julianfrank closed 4 years ago

julianfrank commented 6 years ago

I have a trigger

+ # + # 
- Adding <star1> and <star2>

But it never matches... looks like the + in the middle is confusing the parser... So how do I write this for inputs like

10+22
kirsle commented 6 years ago
! sub + = plus

+ # plus #
- Adding <star1> and <star2>