From 1e4829730482665e3e251ac570428dbfc0785ab0 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 16 Jan 2022 11:02:03 -0800 Subject: [PATCH] Fix pattern syntax in sample readability custom reader. --- doc/custom-readers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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