about summary refs log tree commit diff
path: root/url.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-10 01:23:19 -0500
committerJune McEnroe <june@causal.agency>2020-02-10 01:23:19 -0500
commit665b6912dcdd2c8dbc893bea12329134f174764e (patch)
treeb9c4520d836c7f2ce7a0bdabfb7cc7e388d6a9d4 /url.c
parentFix M-a so it properly cycles back to where it started (diff)
downloadcatgirl-665b6912dcdd2c8dbc893bea12329134f174764e.tar.gz
catgirl-665b6912dcdd2c8dbc893bea12329134f174764e.zip
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;