aboutsummaryrefslogtreecommitdiff
path: root/doc/custom-readers.md
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2022-01-16 11:02:03 -0800
committerJohn MacFarlane <[email protected]>2022-01-16 11:02:03 -0800
commit1e4829730482665e3e251ac570428dbfc0785ab0 (patch)
tree9581437f6d419e7697bbb640fed5ef9239ba8120 /doc/custom-readers.md
parent039c7e925a745b6392e8ce4d6d85c7faa807a289 (diff)
Fix pattern syntax in sample readability custom reader.
Diffstat (limited to 'doc/custom-readers.md')
-rw-r--r--doc/custom-readers.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/custom-readers.md b/doc/custom-readers.md
index be14a1154..08ee7e889 100644
--- a/doc/custom-readers.md
+++ b/doc/custom-readers.md
@@ -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