diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2016-03-03 15:20:26 -0500 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2016-03-04 10:05:11 -0500 |
commit | cd4172bfd8d60b655bb0294b5dfc6f13e897b807 (patch) | |
tree | b6a9210e1efc8d8315d45127cfb4223562199667 /model/search_params.go | |
parent | d1b1148ea8a0290a66ef7c75d1910c2558fa6186 (diff) | |
download | chat-cd4172bfd8d60b655bb0294b5dfc6f13e897b807.tar.gz chat-cd4172bfd8d60b655bb0294b5dfc6f13e897b807.tar.bz2 chat-cd4172bfd8d60b655bb0294b5dfc6f13e897b807.zip |
Stopped removing *s from the end of search phrases
Diffstat (limited to 'model/search_params.go')
-rw-r--r-- | model/search_params.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/model/search_params.go b/model/search_params.go index 9a7406a07..d31782691 100644 --- a/model/search_params.go +++ b/model/search_params.go @@ -89,9 +89,9 @@ func parseSearchFlags(input []string) ([]string, [][2]string) { } if !isFlag { - // trim off surrounding punctuation + // trim off surrounding punctuation (note that we leave trailing asterisks to allow wildcards) word = puncStart.ReplaceAllString(word, "") - word = puncEnd.ReplaceAllString(word, "") + word = puncEndWildcard.ReplaceAllString(word, "") // and remove extra pound #s word = hashtagStart.ReplaceAllString(word, "#") |