From: chris mikkelson Date: Sat, 13 Mar 2010 19:38:22 +0000 (-0600) Subject: Allow URL hostnames with "-" characters... X-Git-Url: https://git.mikk.net/?a=commitdiff_plain;h=790f7d2d06cb6cbff0f76f62450f3e5ffa52a777;p=liburl Allow URL hostnames with "-" characters... --- diff --git a/text.c b/text.c index fa35267..8ff7b0c 100644 --- a/text.c +++ b/text.c @@ -12,7 +12,7 @@ /*static const char *text_url_pattern = "https?://[^\\s]+(?=\\s|$|\\))"; */ static const char *text_url_pattern = - "https?://[a-z0-9.]+(:[0-9]+)?" + "https?://[a-z0-9.-]+(:[0-9]+)?" "(/[0-9a-z_=./+&%?-]*)?" "(?=\r?\n|[^0-9a-z_=./+&%?-])"; static pcre *text_url_re;