stats: Accidentally removed the length check.. oops
This commit is contained in:
parent
dfe2857ae7
commit
92612d74cd
1 changed files with 4 additions and 0 deletions
|
@ -318,6 +318,10 @@ func processWords(message tg.APIMessage) {
|
|||
err := db.Update(func(tx *bolt.Tx) error {
|
||||
b := tx.Bucket([]byte("words"))
|
||||
for _, word := range wordList {
|
||||
if len(word) < 3 {
|
||||
return
|
||||
}
|
||||
|
||||
word = strings.Trim(word, " ?!.,:;/-_()[]{}'\"+=*^\n")
|
||||
count, ok := words[word]
|
||||
if !ok {
|
||||
|
|
Reference in a new issue