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

Matching and Linebreaks #35

Open meowgorithm opened 7 years ago

meowgorithm commented 7 years ago

I've been noticing that user input with linebreaks seems to not match anything at all, not even the topmost catch-all rule. I've been solving for this in the meantime by stripping line breaks before passing the input to RiveScript, but wondering if this is a bug or intended behavior?

kirsle commented 7 years ago

It's a bug. At the very least the + * trigger is supposed to match it, as that even matches completely empty messages.

meowgorithm commented 7 years ago

Awesome and good to know.