fix linting issue

This commit is contained in:
Hunter Kehoe 2024-04-07 21:40:24 -06:00
parent e4c2b938d3
commit 4111bee0c4

View File

@ -64,12 +64,12 @@ func TestTierContext(t *testing.T) {
func TestUsernameRegex(t *testing.T) { func TestUsernameRegex(t *testing.T) {
username := "phil" username := "phil"
username_email := "phil@ntfy.sh" usernameEmail := "phil@ntfy.sh"
username_email_alias := "phil+alias@ntfy.sh" usernameEmailAlias := "phil+alias@ntfy.sh"
username_invalid := "phil\rocks" usernameInvalid := "phil\rocks"
require.True(t, AllowedUsername(username)) require.True(t, AllowedUsername(username))
require.True(t, AllowedUsername(username_email)) require.True(t, AllowedUsername(usernameEmail))
require.True(t, AllowedUsername(username_email_alias)) require.True(t, AllowedUsername(usernameEmailAlias))
require.False(t, AllowedUsername(username_invalid)) require.False(t, AllowedUsername(usernameInvalid))
} }