summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
authorShengyu Zhang <silverrainz@outlook.com>2017-03-10 15:42:46 +0800
committerTingPing <tingping@tingping.se>2017-03-10 12:28:03 -0500
commit99bdc4f2514bda980fcf9cd8f4a122b2fbee1cf0 (patch)
tree36f0e65316c22525d85bb8be0cd29866b91ba1f4 /src/common
parent30a223a6cb8ee36139eeee75026fa72212b6f806 (diff)
Fix email address pattern, it can starts with digit
Diffstat (limited to 'src/common')
-rw-r--r--src/common/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/url.c b/src/common/url.c
index b9e0f675..a741fb04 100644
--- a/src/common/url.c
+++ b/src/common/url.c
@@ -601,7 +601,7 @@ re_url (void)
 }
 
 /*	EMAIL description --- */
-#define EMAIL "[a-z][._%+-a-z0-9]+@" "(" HOST_URL ")"
+#define EMAIL "[a-z0-9][._%+-a-z0-9]+@" "(" HOST_URL ")"
 
 static const GRegex *
 re_email (void)