flint icon indicating copy to clipboard operation
flint copied to clipboard

Flint 5 may be "over-normalizing" message text?

Open jpjpjp opened this issue 7 years ago • 0 comments

The processing of a message in lib/trigger.js includes this call:

          let normalText = text(trigger.message.text).normalize();

This will change text like this: "Bot /echo Repeat this back to me." To this: "bot echo repeat this back to me "

Essentially removing any forward slashed and converting all the message text to lower case. This will likely break existing bots when migrating to flint 5 if by design.

jpjpjp avatar Mar 24 '18 18:03 jpjpjp