浏览代码

[Fix] Fix HFILTER_URL_ONELINE rule

tags/1.3.2
Alexander Moisseev 8 年前
父节点
当前提交
5b154c8748
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      src/plugins/lua/hfilter.lua

+ 2
- 2
src/plugins/lua/hfilter.lua 查看文件

@@ -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

正在加载...
取消
保存