]> git.mikk.net Git - liburl/commitdiff
Text URL regexp correction.
authorchris mikkelson <chris@mikk.net>
Sat, 13 Mar 2010 19:26:56 +0000 (13:26 -0600)
committerchris mikkelson <chris@mikk.net>
Sat, 13 Mar 2010 19:26:56 +0000 (13:26 -0600)
text.c

diff --git a/text.c b/text.c
index 11b6d5394de570a6027eb1f3c288d06250ad09b1..fa3526747db71fd167120a2d17c83316bc6a7e5e 100644 (file)
--- 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?://[^\"]+(?=\")";