summaryrefslogtreecommitdiffstats
path: root/api/post.go
diff options
context:
space:
mode:
authorReed Garmsen <rgarmsen2295@gmail.com>2015-06-19 11:46:48 -0700
committerReed Garmsen <rgarmsen2295@gmail.com>2015-06-19 11:46:48 -0700
commit6c8d7b1b9fe00e60582900b7c1e782e2c0a00325 (patch)
tree80e91b8343f567f301d247392d09ba620909076d /api/post.go
parentc1740ffa2fcfcf663d8e847cfe03187fb600b6c1 (diff)
parent8291cb772c1f2b410c08c5fb71c07ef9ca07b0ce (diff)
downloadchat-6c8d7b1b9fe00e60582900b7c1e782e2c0a00325.tar.gz
chat-6c8d7b1b9fe00e60582900b7c1e782e2c0a00325.tar.bz2
chat-6c8d7b1b9fe00e60582900b7c1e782e2c0a00325.zip
Merge pull request #15 from mattermost/master
to me
Diffstat (limited to 'api/post.go')
-rw-r--r--api/post.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/post.go b/api/post.go
index 36607c231..3acc95551 100644
--- a/api/post.go
+++ b/api/post.go
@@ -302,7 +302,7 @@ func fireAndForgetNotifications(post *model.Post, teamId, teamUrl string) {
// Build a map as a list of unique user_ids that are mentioned in this post
splitF := func(c rune) bool {
- return c == ',' || c == ' ' || c == '.' || c == '!' || c == '?' || c == ':' || c == '<' || c == '>'
+ return model.SplitRunes[c]
}
splitMessage := strings.FieldsFunc(strings.Replace(post.Message, "<br>", " ", -1), splitF)
for _, word := range splitMessage {