summaryrefslogtreecommitdiffstats
path: root/src/url.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/url.c')
-rw-r--r--src/url.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/url.c b/src/url.c
index c089f4275..e5040ca95 100644
--- a/src/url.c
+++ b/src/url.c
@@ -57,7 +57,8 @@ static const char *text_url = "((https?|ftp)://)?"
"|[a-z]{2}"
"(?(1)|(?=/)))"
"(?!\\w)"
-"|(?:\\d{1,3}\\.){3}\\d{1,3}(?(1)|(?=[/:]))"
+"|(?:\\d{1,3}\\.){3}\\d{1,3}(?(1)|(?=[/:]))" /* ip in dotted view */
+"|\\d{5,20}(?(1)|(?=[/:]))" /* ip in numeric view */
")"
"(?::\\d{1,5})?" /* port */
"(?!\\.\\w)" /* host part ended, no more of this further on */