summaryrefslogtreecommitdiffstats
path: root/model/search_params.go
diff options
context:
space:
mode:
authorAsaad Mahmood <asaad@spinpunch.com>2016-03-08 15:07:43 +0500
committerAsaad Mahmood <asaad@spinpunch.com>2016-03-08 15:07:43 +0500
commitcc453a048d50e57802bab9363b59c2189143b784 (patch)
treecbd409ec59ad48c40b84337db9a4cf3a063e4915 /model/search_params.go
parent81ccfca2bfc91779d7bf00dbccb6f932d285a87c (diff)
downloadchat-cc453a048d50e57802bab9363b59c2189143b784.tar.gz
chat-cc453a048d50e57802bab9363b59c2189143b784.tar.bz2
chat-cc453a048d50e57802bab9363b59c2189143b784.zip
Multiple UI Improvements
Diffstat (limited to 'model/search_params.go')
-rw-r--r--model/search_params.go4
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, "#")