Procházet zdrojové kódy

[Minor] Fix tableshape usage, add cleanup rules method

tags/1.8.2
Vsevolod Stakhov před 5 roky
rodič
revize
79cc82161a
1 změnil soubory, kde provedl 8 přidání a 4 odebrání
  1. 8
    4
      lualib/lua_fuzzy.lua

+ 8
- 4
lualib/lua_fuzzy.lua Zobrazit soubor

@@ -55,10 +55,10 @@ local policy_schema = ts.shape{
min_length = ts.number + ts.string / tonumber,
text_multiplier = ts.number,
mime_types = ts.array_of(ts.string),
scan_archives = ts.bool,
short_text_direct_hash = ts.bool,
text_shingles = ts.bool,
skip_imagess = ts.bool,
scan_archives = ts.boolean,
short_text_direct_hash = ts.boolean,
text_shingles = ts.boolean,
skip_imagess = ts.boolean,
}


@@ -264,4 +264,8 @@ exports.check_mime_part = function(task, part, rule_id)
return false,false
end

exports.cleanup_rules = function()
rules = {}
end

return exports

Načítá se…
Zrušit
Uložit