Sha256: 21fd0ac74845d9d7e546f7f23192af01c8c8bdebcf6bd06a263cf68a3797b1e2
Contents?: true
Size: 501 Bytes
Versions: 12
Compression:
Stored size: 501 Bytes
Contents
module Gluttonberg module Content require 'despamilator/filter' module DespamilatorFilter class TrailingNumber < Despamilator::Filter def name 'Trailing Number' end def description 'Detects a trailing cache busting number' end def parse subject subject.register_match!({:score => 0.1, :filter => self}) if subject.text.without_uris =~ /\b\d+\s*$/ end end end end #Content end #Gluttonberg
Version data entries
12 entries across 12 versions & 1 rubygems