-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix swallowed text between 2 mentions #772
base: develop
Are you sure you want to change the base?
Fix swallowed text between 2 mentions #772
Conversation
f1eff50
to
68109b3
Compare
68109b3
to
33d2976
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Thanks! I added the signoff to the PR description and added a changelog entry. |
changelog.d/772.bugfix
Outdated
@@ -0,0 +1 @@ | |||
Fix swallowed text between 2 mentions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@akirk This line needs to end with a '.' or '!' as per tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, added !
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 [email protected]