diff options
Diffstat (limited to 'bridge/slack')
-rw-r--r-- | bridge/slack/slack.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go index 23f60277..2f708832 100644 --- a/bridge/slack/slack.go +++ b/bridge/slack/slack.go @@ -410,7 +410,7 @@ func (b *Bslack) replaceMention(text string) string { } func (b *Bslack) replaceURL(text string) string { - results := regexp.MustCompile(`<(.*?)\|.*?>`).FindAllStringSubmatch(text, -1) + results := regexp.MustCompile(`<(.*?)(\|.*?)?>`).FindAllStringSubmatch(text, -1) for _, r := range results { text = strings.Replace(text, r[0], r[1], -1) } |