Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
minor: Use `OUTER_CAPTURE_GROUP` variable instead of string value.
akshatdalton44a298b67117
diff --git a/zerver/lib/markdown/__init__.py b/zerver/lib/markdown/__init__.pyindex d01f47dbda4..9bea0eca2a6 100644--- a/zerver/lib/markdown/__init__.py+++ b/zerver/lib/markdown/__init__.py@@ -2329,7 +2329,7 @@ def topic_links(linkifiers_key: int, topic_name: str) -> List[Dict[str, str]]:pattern = prepare_linkifier_pattern(raw_pattern)for m in re.finditer(pattern, topic_name):match_details = m.groupdict()- match_text = match_details["linkifier_actual_match"]+ match_text = match_details[OUTER_CAPTURE_GROUP]# We format the linkifier's url string using the matched text.# Also, we include the matched text in the response, so that our clients# don't have to implement any logic of their own to get back the text.