From 995c5a276bb27f50332047684b4d8f4cfc02243b Mon Sep 17 00:00:00 2001 From: hmhealey Date: Mon, 19 Oct 2015 15:30:43 -0400 Subject: Fixed incorrectly escaped * in wildcard search for postgres --- store/sql_post_store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'store/sql_post_store.go') 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, "* ") } } -- cgit v1.2.3-1-g7c22