Open keithamus opened 8 years ago
In detecting pokemons, this bot suffers from the scunthorpe problem. E.g. somewhere detects mew.
somewhere
mew
The trick is to add \b around the regexp that detects these. I've done it in my revision here: https://gist.github.com/keithamus/eb80d5e99a6c7457bfaa77ab55f03090/revisions. You should amend your gist and republish to fix this issue!
\b
i'd possibly just put \b at the start of the regex. with the current regex it accidentally supports plurals and it would be a lot more work to support them properly.
Sounds like a plan 👍
In detecting pokemons, this bot suffers from the scunthorpe problem. E.g.
somewhere
detectsmew
.The trick is to add
\b
around the regexp that detects these. I've done it in my revision here: https://gist.github.com/keithamus/eb80d5e99a6c7457bfaa77ab55f03090/revisions. You should amend your gist and republish to fix this issue!