Skip to content

Commit

Permalink
Reduced New-Line filter Aggressiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
tscs37 committed Mar 16, 2017
1 parent bc02972 commit ac8cdc0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resources/text.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ func SpamScore(spam string) (float64, error) {
lines = 1
}

lines = lines / 2

score := float64(len(spam)*lines) / float64(counter.p)

return (score * blScore) / 100, nil
Expand Down

0 comments on commit ac8cdc0

Please sign in to comment.