zulip/zerver
PieterCK 8764e15599 slack_regex: Fix overlapping capture group in Slack regex.
The Slack text regexes match specific characters before and after the
formatted string to prevent cases like reformatting already formatted
text and test like `invlaid_bold_test` in
`slack_message_conversion.json`.

However, because the capture groups consume each matching character, two
formatted strings separated by a single matching character result in one
string not being matched, as the character is used to match the other
string.

e.g., (`*abc*b*def*` → **abc**b*def*) in this case, "b" is consumed to
match *abc*.

This prep commit modifies the Slack text regex in
`slack_message_conversion.py` to use a non-greedy quantifier for the
last capture group.
2024-11-21 16:18:20 +07:00
..
actions settings: Add `can_invite_users_group` realm setting. 2024-11-20 13:35:05 -08:00
data_import slack_regex: Fix overlapping capture group in Slack regex. 2024-11-21 16:18:20 +07:00
integration_fixtures/nagios
lib settings: Add `can_invite_users_group` realm setting. 2024-11-20 13:35:05 -08:00
management makemessages: Write with orjson. 2024-11-13 17:40:51 -08:00
migrations settings: Remove `invite_to_realm_policy` setting. 2024-11-20 13:35:05 -08:00
models settings: Remove `invite_to_realm_policy` setting. 2024-11-20 13:35:05 -08:00
openapi settings: Remove `invite_to_realm_policy` setting. 2024-11-20 13:35:05 -08:00
tests slack_regex: Fix overlapping capture group in Slack regex. 2024-11-21 16:18:20 +07:00
tornado subscription: Include archived channels in streams list. 2024-10-25 16:06:40 -07:00
transaction_tests compose_views: Add `savepoint=False` to avoid creating savepoints. 2024-11-05 17:58:47 -08:00
views settings: Remove `invite_to_realm_policy` setting. 2024-11-20 13:35:05 -08:00
webhooks integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
worker transaction: Add `durable=True` to the outermost db transactions. 2024-11-05 17:58:47 -08:00
__init__.py
apps.py ruff: Fix UP007 Use `X | Y` for type annotations. 2024-07-13 22:28:22 -07:00
context_processors.py ruff: Fix UP035 Import from `collections.abc`, `typing` instead. 2024-07-13 22:28:22 -07:00
decorator.py upload: Use tusd for resumable, larger uploads. 2024-09-19 11:37:29 -07:00
filters.py ruff: Fix UP007 Use `X | Y` for type annotations. 2024-07-13 22:28:22 -07:00
forms.py auth: Tweak invalid credentials error message. 2024-10-24 14:35:31 -07:00
logging_handlers.py ruff: Fix UP007 Use `X | Y` for type annotations. 2024-07-13 22:28:22 -07:00
middleware.py ruff: Fix UP035 Import from `collections.abc`, `typing` instead. 2024-07-13 22:28:22 -07:00
signals.py ruff: Bump target-version from py38 to py310. 2024-07-13 22:28:22 -07:00