GrafeasGroup / buttercup

Our personal assistant in Discord
MIT License
5 stars 2 forks source link

Fix name change confirmation message #157

Closed TimJentzsch closed 2 years ago

TimJentzsch commented 2 years ago

Relevant issue: Closes #155

Description:

The name change confirmation message would cut off the last character of the username, if the user didn't include their timezone in the nickname.

This PR merges the username regex from the name validator and helper functions and fixes this bug along the way. I also added more tests to verify that it works correctly.

Checklist: