fix tocgen regex

pull/1/head
an 2019-04-05 19:35:04 -04:00
parent 7e071b7622
commit 9025bda4ad
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ def filter_emit r
end
def find_toc_areas f
re = /^(<!-- inter-toc ([^\s]+)\s+-->)(?:.|\n)*?(<!-- end -->)/i
re = /^(<!-- inter-toc\s*([^\s]+)\s*-->)(?:.|\n)*?(<!-- end -->)/i
f.to_enum(:scan, re).map{$~}
end