Search: Support hashtags. Remove # prefix when indexing words.

This commit is contained in:
Kleissner
2021-12-14 15:51:00 +01:00
parent c053c617c2
commit 9262acba88

View File

@@ -25,6 +25,9 @@ func text2Hashes(text string, hashes map[[32]byte]string) {
})
for _, word := range words {
// remove hash tag prefix
word = strings.TrimPrefix(word, "#")
hashWordMap(word, hashes)
}
}