codinglab-io / discord-bot

Discord bot for Codinglab's server.
https://discord.com/invite/codinglab-174169014568878080
MIT License
19 stars 14 forks source link

fix: utf8 char breaks quoifeur #93

Closed Scttpr closed 11 months ago

Scttpr commented 11 months ago

Unwanted behavior : invisible UTF8 chars breaks command from running as expected

Fix : sanitize input by removing non ascii chars.

Content : added regex helper for non ascii chars. The drawback is that it replaces accents from content that is maybe not ideal for french content (but totally matching the code as it is described - non ascii are out). In our scenario, it should not break quoifeur behavior though.

Scttpr commented 11 months ago

I pushed the lint & format fix and it still requires a 2 workflows awaiting approval. I think this new commit broke the self-merge, sorry for that. Did I miss something about the expected flow @neolectron?

[Edit] : All checks have passed, but still I disabled auto-merge :/