Merge pull request #2057 from khoa-le/PLT-1673

PLT-1673: Make hashtag searching independent of case
Этот коммит содержится в:
Harrison Healey
2016-02-03 11:10:35 -05:00
родитель f7fddd6cce 36228f5f8a
Коммит 6769969051

Просмотреть файл

@@ -629,7 +629,7 @@ func (s SqlPostStore) Search(teamId string, userId string, params *model.SearchP
if params.IsHashtag {
searchType = "Hashtags"
for _, term := range strings.Split(terms, " ") {
termMap[term] = true
termMap[strings.ToUpper(term)] = true
}
}
@@ -748,7 +748,7 @@ func (s SqlPostStore) Search(teamId string, userId string, params *model.SearchP
if searchType == "Hashtags" {
exactMatch := false
for _, tag := range strings.Split(p.Hashtags, " ") {
if termMap[tag] {
if termMap[strings.ToUpper(tag)] {
exactMatch = true
}
}