diff options
| author | John MacFarlane <[email protected]> | 2022-01-16 11:02:03 -0800 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2022-01-16 11:02:03 -0800 |
| commit | 1e4829730482665e3e251ac570428dbfc0785ab0 (patch) | |
| tree | 9581437f6d419e7697bbb640fed5ef9239ba8120 /doc/custom-readers.md | |
| parent | 039c7e925a745b6392e8ce4d6d85c7faa807a289 (diff) | |
Fix pattern syntax in sample readability custom reader.
Diffstat (limited to 'doc/custom-readers.md')
| -rw-r--r-- | doc/custom-readers.md | 2 |
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 |
