Fixed incorrectly escaped * in wildcard search for postgres
Этот коммит содержится в:
@@ -440,7 +440,7 @@ func (s SqlPostStore) Search(teamId string, userId string, params *model.SearchP
|
|||||||
if utils.Cfg.SqlSettings.DriverName == model.DATABASE_DRIVER_POSTGRES {
|
if utils.Cfg.SqlSettings.DriverName == model.DATABASE_DRIVER_POSTGRES {
|
||||||
// Parse text for wildcards
|
// Parse text for wildcards
|
||||||
if wildcard, err := regexp.Compile("\\*($| )"); err == nil {
|
if wildcard, err := regexp.Compile("\\*($| )"); err == nil {
|
||||||
terms = wildcard.ReplaceAllLiteralString(terms, ":* ")
|
terms = wildcard.ReplaceAllLiteralString(terms, "* ")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user