Zirak / SO-ChatBot

Other
124 stars 60 forks source link

Zero-width space inserted into !!color command #90

Closed Shmiddty closed 11 years ago

Shmiddty commented 11 years ago

Doing a .replace(/[^0-9a-z, ]/gi, '') before doing the match should fix this.

Zirak commented 11 years ago

It's the same as #87, so I pulled out the fix to a broader area. The bot should now strip off all zwnjs and zwsps.