boidushya / imposterBot

Source code for u/botwasnotanimposter
MIT License
5 stars 1 forks source link

Bot mistakes non-username reference #2

Closed blake-sc closed 4 years ago

blake-sc commented 4 years ago

i.e. it will think something like BTU/s is a reference to a user "u/s" rather than the rate of change of an archaic thermal unit.

This should be solvable by putting a \b (word boundary marker) before the u in the regex, like \bu .

boidushya commented 4 years ago

Fixed :)