From c5e8cb25caa39ed018ede5270e1566e8f7448396 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 30 Oct 2017 11:57:24 -0500 Subject: simplify things (#7735) --- store/sqlstore/post_store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'store/sqlstore/post_store.go') diff --git a/store/sqlstore/post_store.go b/store/sqlstore/post_store.go index 6faf51c3d..2fa8f2403 100644 --- a/store/sqlstore/post_store.go +++ b/store/sqlstore/post_store.go @@ -831,7 +831,7 @@ func (s SqlPostStore) Search(teamId string, userId string, params *model.SearchP searchQuery = strings.Replace(searchQuery, "SEARCH_CLAUSE", "", 1) } else if s.DriverName() == model.DATABASE_DRIVER_POSTGRES { // Parse text for wildcards - if wildcard, err := regexp.Compile("\\*($| )"); err == nil { + if wildcard, err := regexp.Compile(`\*($| )`); err == nil { terms = wildcard.ReplaceAllLiteralString(terms, ":* ") } -- cgit v1.2.3-1-g7c22