Fix pattern syntax in sample readability custom reader.

This commit is contained in:
John MacFarlane 2022-01-16 11:02:03 -08:00
parent 039c7e925a
commit 1e48297304

View file

@ -737,7 +737,7 @@ local function handle_div(el)
for i,k in ipairs(boring_attributes) do
el.attributes[k] = nil
end
if el.identifier:match("readability-") then
if el.identifier:match("readability%-") then
el.identifier = ""
end
if #el.classes == 0 and #el.attributes == 0 and #el.identifier == 0 then