dcsan / gitterbot

GitterBot / gitter chatbot with Wiki integration, and more!
https://gitter.im/dcsan/gitterbot
61 stars 83 forks source link

tighten regex on troll #168

Closed dcsan closed 9 years ago

dcsan commented 9 years ago

We should tighten the regex on this expression

(^|\s)troll(\s|$)

skitch

cc @QuincyLarson

abhisekp commented 9 years ago

@dcsan wouldn't a word break \b around the word troll be sufficient?

e.g. \btroll\b