From 55070293235ca971e4c88e588d00729691b97aca Mon Sep 17 00:00:00 2001 From: chris mikkelson Date: Sat, 13 Mar 2010 13:26:56 -0600 Subject: [PATCH] Text URL regexp correction. --- text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/text.c b/text.c index 11b6d53..fa35267 100644 --- a/text.c +++ b/text.c @@ -13,7 +13,7 @@ /*static const char *text_url_pattern = "https?://[^\\s]+(?=\\s|$|\\))"; */ static const char *text_url_pattern = "https?://[a-z0-9.]+(:[0-9]+)?" - "(/[0-9a-z_=./+&%?-]+)?" + "(/[0-9a-z_=./+&%?-]*)?" "(?=\r?\n|[^0-9a-z_=./+&%?-])"; static pcre *text_url_re; static const char *html_url_pattern = "<(a href|img src)=\"https?://[^\"]+(?=\")"; -- 2.50.1