From 99bdc4f2514bda980fcf9cd8f4a122b2fbee1cf0 Mon Sep 17 00:00:00 2001 From: Shengyu Zhang Date: Fri, 10 Mar 2017 15:42:46 +0800 Subject: Fix email address pattern, it can starts with digit --- src/common/url.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit 1.4.1