summaryrefslogtreecommitdiffstats
path: root/model/utils.go
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-03-03 15:20:26 -0500
committerHarrison Healey <harrisonmhealey@gmail.com>2016-03-04 10:05:11 -0500
commitcd4172bfd8d60b655bb0294b5dfc6f13e897b807 (patch)
treeb6a9210e1efc8d8315d45127cfb4223562199667 /model/utils.go
parentd1b1148ea8a0290a66ef7c75d1910c2558fa6186 (diff)
downloadchat-cd4172bfd8d60b655bb0294b5dfc6f13e897b807.tar.gz
chat-cd4172bfd8d60b655bb0294b5dfc6f13e897b807.tar.bz2
chat-cd4172bfd8d60b655bb0294b5dfc6f13e897b807.zip
Stopped removing *s from the end of search phrases
Diffstat (limited to 'model/utils.go')
-rw-r--r--model/utils.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/model/utils.go b/model/utils.go
index 695d4a0cb..808c89e30 100644
--- a/model/utils.go
+++ b/model/utils.go
@@ -291,6 +291,7 @@ var validHashtag = regexp.MustCompile(`^(#[A-Za-zäöüÄÖÜß]+[A-Za-z0-9äöÃ
var puncStart = regexp.MustCompile(`^[.,()&$!\?\[\]{}':;\\<>\-+=%^*|]+`)
var hashtagStart = regexp.MustCompile(`^#{2,}`)
var puncEnd = regexp.MustCompile(`[.,()&$#!\?\[\]{}':;\\<>\-+=%^*|]+$`)
+var puncEndWildcard = regexp.MustCompile(`[.,()&$#!\?\[\]{}':;\\<>\-+=%^|]+$`)
func ParseHashtags(text string) (string, string) {
words := strings.Fields(text)