Fix pattern syntax in sample readability custom reader.
This commit is contained in:
parent
039c7e925a
commit
1e48297304
1 changed files with 1 additions and 1 deletions
|
@ -737,7 +737,7 @@ local function handle_div(el)
|
||||||
for i,k in ipairs(boring_attributes) do
|
for i,k in ipairs(boring_attributes) do
|
||||||
el.attributes[k] = nil
|
el.attributes[k] = nil
|
||||||
end
|
end
|
||||||
if el.identifier:match("readability-") then
|
if el.identifier:match("readability%-") then
|
||||||
el.identifier = ""
|
el.identifier = ""
|
||||||
end
|
end
|
||||||
if #el.classes == 0 and #el.attributes == 0 and #el.identifier == 0 then
|
if #el.classes == 0 and #el.attributes == 0 and #el.identifier == 0 then
|
||||||
|
|
Loading…
Add table
Reference in a new issue