summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-10 21:55:56 -0500
committerJune McEnroe <june@causal.agency>2020-02-10 21:55:56 -0500
commit01277ec3b470b16087d5c758e7e674638adeafd9 (patch)
tree7163b1e3cf42e26b1c4f6089b91df0d6deb79396
parentDuplicate effective URL before passing it back to curl (diff)
downloadsrc-01277ec3b470b16087d5c758e7e674638adeafd9.tar.gz
src-01277ec3b470b16087d5c758e7e674638adeafd9.zip
Match URLs inside parens or with paired parens inside
-rw-r--r--bin/title.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/title.c b/bin/title.c
index 0168e2c9..24d4e8eb 100644
--- a/bin/title.c
+++ b/bin/title.c
@@ -190,7 +190,7 @@ int main(int argc, char *argv[]) {
 	char *buf = NULL;
 	size_t cap = 0;
 
-	regex_t urlRegex = regex("https?://[^[:space:]>\"]+", 0);
+	regex_t urlRegex = regex("https?://([^[:space:]>\"()]|[(][^)]*[)])+", 0);
 	while (0 < getline(&buf, &cap, stdin)) {
 		regmatch_t match = {0};
 		for (char *ptr = buf; *ptr; ptr += match.rm_eo) {
4c27fa9efeeeef7cfe7e5fb62117163&follow=1'>Output ring info on SIGINFOJune McEnroe 2019-10-27Improve client/server error messagesJune McEnroe 2019-10-27Add reload cmd to rc scriptJune McEnroe 2019-10-27Reload certificate on SIGUSR1June McEnroe 2019-10-27Drop clients on zero-length readsJune McEnroe 2019-10-27Explicitly tls_handshake new clientsJune McEnroe 2019-10-26Document rationaleJune McEnroe 2019-10-26Handle nick collisionJune McEnroe 2019-10-26Wait for AUTHENTICATE + from serverJune McEnroe 2019-10-26Respond to PING with same parameterJune McEnroe 2019-10-26Add undocumented flag to disable verificationJune McEnroe 2019-10-26Do not require RPL_ISUPPORT for stateReadyJune McEnroe 2019-10-26Implement graceful shutdownJune McEnroe 2019-10-26Require PASS before USERJune McEnroe 2019-10-26Track channel topicsJune McEnroe 2019-10-26Set AWAY when no clients are connectedJune McEnroe 2019-10-26Add flags to request TOPIC and NAMES on client connectJune McEnroe 2019-10-26OopsJune McEnroe 2019-10-26Disconnect client on unknown commandJune McEnroe 2019-10-26Allow reading sensitive information from filesJune McEnroe 2019-10-26Add rc scriptJune McEnroe 2019-10-25Add install and uninstall targetsJune McEnroe 2019-10-25Expand documentationJune McEnroe 2019-10-25Add AGPLv3 notice on client registrationJune McEnroe 2019-10-25Rename project pounceJune McEnroe