diff options
author | C. McEnroe | 2020-02-10 01:23:19 -0500 |
---|---|---|
committer | C. McEnroe | 2020-02-10 01:23:19 -0500 |
commit | 665b6912dcdd2c8dbc893bea12329134f174764e (patch) | |
tree | b9c4520d836c7f2ce7a0bdabfb7cc7e388d6a9d4 | |
parent | f3fa88ef920c5fdfd5b4fd6cc0b00a38d9d25c53 (diff) |
Match URLs surrounded by parentheses
But include a pair of parentheses in the URL itself.
-rw-r--r-- | url.c | 2 |
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; |