don't parse something like "bla..." as domain

This commit is contained in:
Giuliano Schneider 2013-04-30 16:10:29 +02:00
parent 04248fd49e
commit 43e798dde7

2
menu.c
View File

@ -28,7 +28,7 @@ char *extract_urls(const char *to_match)
if (!is_initialized) {
char *regex =
"((http|ftp|https)(://))?(www\\.)?[[:alnum:]_-]+\\.[^[:space:]\"<>]{2,}";
"((http|ftp|https)(://))?(www\\.)?[[:alnum:]._-]+\\.[^[:space:].\"<>]{2,}";
int ret = regcomp(&cregex, regex, REG_EXTENDED | REG_ICASE);
if (ret != 0) {
printf("failed to compile regex\n");