summary refs log tree commit diff
path: root/url.c
diff options
context:
space:
mode:
authorC. McEnroe2020-02-10 01:23:19 -0500
committerC. McEnroe2020-02-10 01:23:19 -0500
commit665b6912dcdd2c8dbc893bea12329134f174764e (patch)
treeb9c4520d836c7f2ce7a0bdabfb7cc7e388d6a9d4 /url.c
parentf3fa88ef920c5fdfd5b4fd6cc0b00a38d9d25c53 (diff)
Match URLs surrounded by parentheses
But include a pair of parentheses in the URL itself.
Diffstat (limited to 'url.c')
-rw-r--r--url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/url.c b/url.c
index 7ab1e53..1ccc206 100644
--- a/url.c
+++ b/url.c
@@ -43,7 +43,7 @@ static const char *Pattern = {
 	"telnet|"
 	"vnc"
 	")"
-	":[^[:space:]>\"]+"
+	":([^[:space:]>\"()]|[(][^)]*[)])+"
 };
 static regex_t Regex;