mirror of https://github.com/zulip/zulip.git
830c4acedc
Modifies `StreamPattern` and `StreamTopicPattern` to inherit from InlineProcessor instead of Pattern. This change is done because Pattern stopped checking for matching patterns as soon as it found a match which was not a valid stream. Due to this all the subsequent mention failed, even if they were valid. This bug was only present in backend renderring due to markdown.inlinepatterns.Pattern. Due to above changes verbose_compile is no longer used for precompiling STREAM_LINK_REGEX, STREAM_TOPIC_LINK_REGEX as adds ^(.*?) and (.*?)$ which cause extra overhead of matching pattern which is not required. With new InlineProcessor these extra patterns at beggining and end are not required. So, StreamPattern and StreamTopicPattern now define their own __init__ method for precompiling the regex. Fixes #17535. These changes were tested locally in dev server and by adding some new markdown tests to test these. |
||
---|---|---|
.. | ||
__init__.py | ||
api_arguments_table_generator.py | ||
api_return_values_table_generator.py | ||
fenced_code.py | ||
help_emoticon_translations_table.py | ||
help_relative_links.py | ||
help_settings_links.py | ||
include.py | ||
nested_code_blocks.py | ||
tabbed_sections.py | ||
testing_mocks.py |