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 ed85fc6 commit 33d2976Copy full SHA for 33d2976
src/SlackGhost.ts
@@ -314,7 +314,7 @@ export class SlackGhost {
314
public prepareBody(body: string): string {
315
// TODO: This is fixing plaintext mentions, but should be refactored.
316
// See https://github.com/matrix-org/matrix-appservice-slack/issues/110
317
- return body.replace(/<https:\/\/matrix\.to\/#\/@.+:.+\|(.+)>/g, "$1");
+ return body.replace(/<https:\/\/matrix\.to\/#\/@[^:]+:[^|]+\|([^>]+)>/g, "$1");
318
}
319
320
public prepareFormattedBody(body: string): string {
0 commit comments