- Issue: #1565 - Reported by: @moisseevtags/1.5.5
@@ -292,8 +292,9 @@ local function hfilter(task) | |||
if plen > 0 and url_len > 0 then | |||
local rel = url_len / plen | |||
if rel > 0.8 then | |||
task:insert_result('HFILTER_URL_ONLY', (rel - 0.8) * 5.0, | |||
tostring(rel)) | |||
local sc = (rel - 0.8) * 5.0 | |||
if sc > 1.0 then sc = 1.0 end | |||
task:insert_result('HFILTER_URL_ONLY', sc, tostring(sc)) | |||
local lines = plain_text_part:get_lines_count() | |||
if lines > 0 and lines < 2 then | |||
task:insert_result('HFILTER_URL_ONELINE', 1.00, |