From 4476adf131dfe72f1245a20499203692acd0e196 Mon Sep 17 00:00:00 2001 From: George Goldberg Date: Thu, 3 Nov 2016 19:26:00 +0000 Subject: Channel link marker changed from ! to ~ (#4433) Fixes PLT-4570 --- api/slackimport.go | 2 +- api/slackimport_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'api') 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.", }, }, } -- cgit v1.2.3-1-g7c22