From 790f7d2d06cb6cbff0f76f62450f3e5ffa52a777 Mon Sep 17 00:00:00 2001 From: chris mikkelson Date: Sat, 13 Mar 2010 13:38:22 -0600 Subject: [PATCH] Allow URL hostnames with "-" characters... --- text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.50.1