We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17816c4 commit 68109b3Copy full SHA for 68109b3
src/SlackMessageParser.ts
@@ -237,7 +237,7 @@ export class SlackMessageParser {
237
238
// TODO: This is fixing plaintext mentions, but should be refactored.
239
// https://github.com/matrix-org/matrix-appservice-slack/issues/110
240
- body = body.replace(/<https:\/\/matrix\.to\/#\/@.+:.+\|(.+)>/g, "$1");
+ body = body.replace(/<https:\/\/matrix\.to\/#\/@[^:]+:[^|]+\|([^>]+)>/g, "$1");
241
242
// Convert plain text body to HTML.
243
// We first run it through Slackdown, which will convert some elements to HTML.
0 commit comments