summaryrefslogtreecommitdiffstats
path: root/store/sql_post_store.go
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-10-19 15:30:43 -0400
committerhmhealey <harrisonmhealey@gmail.com>2015-10-19 15:30:43 -0400
commit995c5a276bb27f50332047684b4d8f4cfc02243b (patch)
treea134d21424bef59a3c58ea03662a25f0776f81da /store/sql_post_store.go
parent06fd374c1907add3faeeba7916b279e0a3302a4e (diff)
downloadchat-995c5a276bb27f50332047684b4d8f4cfc02243b.tar.gz
chat-995c5a276bb27f50332047684b4d8f4cfc02243b.tar.bz2
chat-995c5a276bb27f50332047684b4d8f4cfc02243b.zip
Fixed incorrectly escaped * in wildcard search for postgres
Diffstat (limited to 'store/sql_post_store.go')
-rw-r--r--store/sql_post_store.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/store/sql_post_store.go b/store/sql_post_store.go
index dc1b78ea9..6971de9d7 100644
--- a/store/sql_post_store.go
+++ b/store/sql_post_store.go
@@ -440,7 +440,7 @@ func (s SqlPostStore) Search(teamId string, userId string, params *model.SearchP
if utils.Cfg.SqlSettings.DriverName == model.DATABASE_DRIVER_POSTGRES {
// Parse text for wildcards
if wildcard, err := regexp.Compile("\\*($| )"); err == nil {
- terms = wildcard.ReplaceAllLiteralString(terms, ":* ")
+ terms = wildcard.ReplaceAllLiteralString(terms, "* ")
}
}