summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2014-12-28 00:29:21 -0500
committerTingPing <tingping@tingping.se>2014-12-28 00:29:58 -0500
commit77ecaa6093a8ba0d0edc1e59f3f08449bbe65f74 (patch)
tree477e88e87ee1b6024f00c35c96c8adf3d704f836
parent664f6bf1e757d74cf35a5d3ab18754ebc792242f (diff)
Detect urls with unicode symbols
Fixes #1250
-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 bf058f89..5f6dce65 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][-_\\pL\\pN]*(\\.[-_\\pL\\pN]+)*"
+#define DOMAIN "[_\\pL\\pN\\pS][-_\\pL\\pN\\pS]*(\\.[-_\\pL\\pN]+)*"
 #define TLD "\\.[\\pL][-\\pL\\pN]*[\\pL]"
 #define IPADDR "[0-9]{1,3}(\\.[0-9]{1,3}){3}"
 #define IPV6GROUP "([0-9a-f]{0,4})"