From c4cb1b25ec06a5b0cb718c6f8e74630df9a9bc64 Mon Sep 17 00:00:00 2001 From: TingPing Date: Sun, 28 Dec 2014 00:39:02 -0500 Subject: [PATCH] Fixup: Detect urls with unicode symbols missed one in 77ecaa6093a --- 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 5f6dce65..c5a3e718 100644 --- a/src/common/url.c +++ b/src/common/url.c @@ -415,7 +415,7 @@ regex_match (const GRegex *re, const char *word, int *start, int *end) } /* Miscellaneous description --- */ -#define DOMAIN "[_\\pL\\pN\\pS][-_\\pL\\pN\\pS]*(\\.[-_\\pL\\pN]+)*" +#define DOMAIN "[_\\pL\\pN\\pS][-_\\pL\\pN\\pS]*(\\.[-_\\pL\\pN\\pS]+)*" #define TLD "\\.[\\pL][-\\pL\\pN]*[\\pL]" #define IPADDR "[0-9]{1,3}(\\.[0-9]{1,3}){3}" #define IPV6GROUP "([0-9a-f]{0,4})"