Channel link marker changed from ! to ~ (#4433)

Fixes PLT-4570
Этот коммит содержится в:
George Goldberg
2016-11-03 19:26:00 +00:00
коммит произвёл Christopher Speller
родитель 7d91f17914
Коммит 4476adf131
4 изменённых файлов: 11 добавлений и 11 удалений

Просмотреть файл

@@ -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 {

Просмотреть файл

@@ -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.",
},
},
}