Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
tabbed_sections: Fix a backtrack-able regex.
Alex Vandiver61262c7b9a31
diff --git a/zerver/lib/markdown/tabbed_sections.py b/zerver/lib/markdown/tabbed_sections.pyindex 7012a405cbf..4e33ffa6b26 100644--- a/zerver/lib/markdown/tabbed_sections.py+++ b/zerver/lib/markdown/tabbed_sections.py@@ -9,7 +9,7 @@ from zerver.lib.markdown.priorities import PREPROCESSOR_PRIORITESSTART_TABBED_SECTION_REGEX = re.compile(r"^\{start_tabs\}$")END_TABBED_SECTION_REGEX = re.compile(r"^\{end_tabs\}$")-TAB_CONTENT_REGEX = re.compile(r"^\{tab\|\s*(.+?)\s*\}$")+TAB_CONTENT_REGEX = re.compile(r"^\{tab\|([^}]+)\}$")TABBED_SECTION_TEMPLATE = """<div class="tabbed-section {tab_class}" markdown="1">