diff --git a/lib/section_extractor/toc.rb b/lib/section_extractor/toc.rb index 0f69ed8..1acca97 100644 --- a/lib/section_extractor/toc.rb +++ b/lib/section_extractor/toc.rb @@ -28,6 +28,8 @@ def valid_toc_item?(toc_item) when :numeric match = toc_item.raw_title.match(/^(\d+)/) match.size > 0 && match[1].to_i <= MAX_NUMERIC_TOC_ITEM + else + true end end end