From: chris mikkelson Date: Sat, 13 Mar 2010 19:26:56 +0000 (-0600) Subject: Text URL regexp correction. X-Git-Url: https://git.mikk.net/?a=commitdiff_plain;h=55070293235ca971e4c88e588d00729691b97aca;p=liburl Text URL regexp correction. --- 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?://[^\"]+(?=\")";