aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--url-mode.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/url-mode.c b/url-mode.c
index 83cb4982..9aac9be0 100644
--- a/url-mode.c
+++ b/url-mode.c
@@ -380,7 +380,11 @@ regex_detected(const struct terminal *term, enum url_action action, url_list_t *
}
}
- // https://gist.github.com/gruber/249502
+ /*
+ * Based on https://gist.github.com/gruber/249502, but modified:
+ * - Do not allow {} at all
+ * - Do allow matched []
+ */
regex_t preg;
const char *regex_string =
"("