mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
* Sanitize user term search Remove the @ at the beginning of the search term in order to make it possible for ES to return results
11 lines
236 B
Go
11 lines
236 B
Go
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
package searchlayer
|
|
|
|
import "strings"
|
|
|
|
func sanitizeSearchTerm(term string) string {
|
|
return strings.TrimLeft(term, "@")
|
|
}
|