Skip to content

Commit

Permalink
fix: chage user format
Browse files Browse the repository at this point in the history
  • Loading branch information
NichArchA82 committed Oct 5, 2024
1 parent 9dc58dc commit 3de8726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command-handler/src/util/format-user.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const formatUser = (user) => {
const formatedUser = user.replaceAll('@', '-').replaceAll('.', '-').replaceAll('_', '-').toLowerCase();
const formatedUser = user.split('@')[0].replaceAll('.', '-').replaceAll('_', '-').toLowerCase();
return formatedUser;
}

Expand Down

0 comments on commit 3de8726

Please sign in to comment.