From 3564bc8273fdeb48ae0e5adb41d28d29b9fd0127 Mon Sep 17 00:00:00 2001 From: ceee Date: Fri, 27 Sep 2013 01:08:13 +0200 Subject: [PATCH] allow dashes in username --- PocketSharp/Components/Account.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PocketSharp/Components/Account.cs b/PocketSharp/Components/Account.cs index 050d300..78623cb 100644 --- a/PocketSharp/Components/Account.cs +++ b/PocketSharp/Components/Account.cs @@ -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) {