mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
This prep commit modifies the Slack text regex in `slack_message_conversion.py` to use the `re.MULTILINE` flag capture formatted strings that are adjacent to newline or end of line. These kinds of strings are likely not uncommon to be generated by Slack exporter itself and our Slack message block and attachment formatters (`render_blocks` and `render_attachments`) also produces them. This also fixes Slack webhook integration's `test_message_with_complex_formatted_texts` which was previously expecting false output. Fixes part of #30827.