This repository was archived by the owner on Jan 22, 2026. It is now read-only.
Fix swallowed text between 2 mentions#772
Open
akirk wants to merge 3 commits intomatrix-org:developfrom
Open
Conversation
f1eff50 to
68109b3
Compare
68109b3 to
33d2976
Compare
Half-Shot
reviewed
Dec 1, 2023
Contributor
Half-Shot
left a comment
There was a problem hiding this comment.
The fix looks sensible to me. Thanks! Can you complete the contributing checklist (signoff and changelog https://github.com/matrix-org/matrix-appservice-bridge/blob/develop/CONTRIBUTING.md), and then this should be good to go.
Author
|
Thanks! I added the signoff to the PR description and added a changelog entry. |
ashfame
reviewed
Dec 7, 2023
| @@ -0,0 +1 @@ | |||
| Fix swallowed text between 2 mentions | |||
There was a problem hiding this comment.
@akirk This line needs to end with a '.' or '!' as per tests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When there are two mentions in a single Slack message, the text between the messages is swallowed.
I've extracted some code to make it easier to see the fix:
outputs
The first line is using the current regex which swallows text, the second one is the improved one.
Signed-off-by: Alex Kirk akirk@users.noreply.github.com