diff options
Diffstat (limited to 'api')
-rw-r--r-- | api/slackimport.go | 2 | ||||
-rw-r--r-- | api/slackimport_test.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/api/slackimport.go b/api/slackimport.go index f6ee9fc4c..759514553 100644 --- a/api/slackimport.go +++ b/api/slackimport.go @@ -440,7 +440,7 @@ func SlackConvertChannelMentions(channels []SlackChannel, posts map[string][]Sla l4g.Warn(utils.T("api.slackimport.slack_convert_channel_mentions.compile_regexp_failed.warn"), channel.Id, channel.Name) continue } - regexes["!"+channel.Name] = r + regexes["~"+channel.Name] = r } for channelName, channelPosts := range posts { diff --git a/api/slackimport_test.go b/api/slackimport_test.go index 4da1fa54e..81b79b3d1 100644 --- a/api/slackimport_test.go +++ b/api/slackimport_test.go @@ -110,10 +110,10 @@ func TestSlackConvertChannelMentions(t *testing.T) { expectedPosts := map[string][]SlackPost{ "test-channel": { { - Text: "Go to !one.", + Text: "Go to ~one.", }, { - Text: "Try !two for this.", + Text: "Try ~two for this.", }, }, } |