fix out of channel mentions for mentioned word with valid punctuations (#8585)
Этот коммит содержится в:
коммит произвёл
Derrick Anderson
родитель
f7dd715052
Коммит
e16217166d
@@ -234,6 +234,12 @@ func TestGetExplicitMentions(t *testing.T) {
|
||||
OtherPotentialMentions: []string{"potential"},
|
||||
},
|
||||
},
|
||||
"PotentialOutOfChannelUserWithPeriod": {
|
||||
Message: "this is an message for @potential.user",
|
||||
Expected: &ExplicitMentions{
|
||||
OtherPotentialMentions: []string{"potential.user"},
|
||||
},
|
||||
},
|
||||
"InlineCode": {
|
||||
Message: "`this shouldn't mention @channel at all`",
|
||||
Keywords: map[string][]string{},
|
||||
|
||||
Ссылка в новой задаче
Block a user