Bladeren bron

[Fix] Fix HFILTER_URL_ONELINE rule

tags/1.3.2
Alexander Moisseev 8 jaren geleden
bovenliggende
commit
5b154c8748
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2
    2
      src/plugins/lua/hfilter.lua

+ 2
- 2
src/plugins/lua/hfilter.lua Bestand weergeven

@@ -267,7 +267,7 @@ local function hfilter(task)
local rel = url_len / plen
if rel > 0.8 then
task:insert_result('HFILTER_URL_ONLY', (rel - 0.8) * 5.0)
local lines = html_text_part:get_lines()
local lines = html_text_part:get_lines_count()
if lines > 0 and lines < 2 then
task:insert_result('HFILTER_URL_ONELINE', 1.00)
end
@@ -281,7 +281,7 @@ local function hfilter(task)
local rel = url_len / plen
if rel > 0.8 then
task:insert_result('HFILTER_URL_ONLY', (rel - 0.8) * 5.0)
local lines = plain_text_part:get_lines()
local lines = plain_text_part:get_lines_count()
if lines > 0 and lines < 2 then
task:insert_result('HFILTER_URL_ONELINE', 1.00)
end

Laden…
Annuleren
Opslaan