]> git.openstreetmap.org Git - rails.git/commit
SpamScorer: normalise whitespace in comparable form
authorGrant Slater <github@firefishy.com>
Tue, 30 Dec 2025 17:58:26 +0000 (17:58 +0000)
committerGrant Slater <github@firefishy.com>
Tue, 30 Dec 2025 18:14:55 +0000 (18:14 +0000)
commit80085e11aa8589b069310bcc1cbdd3eda7afe512
treeca45b390ed7de1ec2b7a5c200941386ed2f70078
parent9456eb0d4f2f6c85353a9e86d7dfd4299839b04d
SpamScorer: normalise whitespace in comparable form

Collapse Unicode whitespace runs to a single space in SpamScorer::RichText#to_comparable_form to improve SpammyPhrase matching across newlines/tabs.
lib/spam_scorer/rich_text.rb
test/lib/spam_scorer_test.rb