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 '')
-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;
 
fc78420a29fa34ed9c0642&follow=1'>Exit focus and paste modes on err exitJune McEnroe 2020-02-11Add startup GPLv3 note and URLJune McEnroe 2020-02-11Make sure -D_GNU_SOURCE ends up in CFLAGS on LinuxJune McEnroe 2020-02-11Add note about setting PKG_CONFIG_PATHJune McEnroe 2020-02-11Rename query ID on nick changeJune McEnroe 2020-02-11Call completeClear when closing a windowJune McEnroe 2020-02-11Don't insert color codes for non-mentionsJune McEnroe 2020-02-11Take first two words in colorMentionsJune McEnroe 2020-02-11Use time_t for save signatureJune McEnroe 2020-02-11Set self.nick to * initiallyJune McEnroe 2020-02-11Define ColorCap instead of hardcoding 100June McEnroe 2020-02-11Move hash to top of chat.hJune McEnroe 2020-02-11Move base64 out of chat.hJune McEnroe 2020-02-11Move XDG_SUBDIR out of chat.hJune McEnroe 2020-02-11Fix whois idle unit calculationJune McEnroe 2020-02-11Cast towupper to wchar_tJune McEnroe 2020-02-11Cast set but unused variables to voidJune McEnroe 2020-02-11Declare strlcatJune McEnroe 2020-02-11Check if VDSUSP existsJune McEnroe 2020-02-11Fix completeReplace iterationJune McEnroe 2020-02-11Use pkg(8) to configure on FreeBSDJune McEnroe 2020-02-11Remove legacy codeJune McEnroe 2020-02-11Add INSTALLING section to READMEJune McEnroe