We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20bb408 commit 348085bCopy full SHA for 348085b
internal/internal.go
@@ -47,10 +47,10 @@ type AppConfiguration struct {
47
}
48
49
func (a *App) FixUsername(username string) string {
50
- if !strings.HasSuffix(username, a.userSuffix) {
+ if !strings.HasSuffix(a.userSuffix, username) {
51
// Only add a @ if the configured user suffix doesn't already
52
// start with one.
53
- if strings.HasPrefix("@", a.userSuffix) {
+ if strings.HasPrefix(a.userSuffix, "@") {
54
return fmt.Sprintf("%s%s", username, a.userSuffix)
55
56
return fmt.Sprintf("%s@%s", username, a.userSuffix)
0 commit comments