mirror of https://github.com/marrub--/zscript-doc
fix tocgen regex
parent
7e071b7622
commit
9025bda4ad
|
@ -15,7 +15,7 @@ def filter_emit r
|
||||||
end
|
end
|
||||||
|
|
||||||
def find_toc_areas f
|
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{$~}
|
f.to_enum(:scan, re).map{$~}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue