allow dashes in username

This commit is contained in:
2013-09-27 01:08:13 +02:00
parent 2154740550
commit 3564bc8273
+1 -1
View File
@@ -120,7 +120,7 @@ namespace PocketSharp
}
Match matchEmail = Regex.Match(email, @"^([\w\.\-]+)@([\w\-]+)((\.(\w){2,10}))$");
Match matchUsername = Regex.Match(username, @"^([\w\-]{1,20})$");
Match matchUsername = Regex.Match(username, @"^([\w\-_]{1,20})$");
if (!matchEmail.Success)
{