Update regex now that table of contents is in different format

Regex now removes anything that comes after [ or (
pull/2146/head
Jake Leahy 1 year ago
parent abec0d9375
commit c2a47b323f
No known key found for this signature in database

@ -55,7 +55,8 @@ module Docs
css('.simple-toc-section a, .nested-toc-section a').each do |node|
entry_name = node.content
entry_name.gsub!(/,.*/, '')
entry_name.gsub!(/(\(|\[).*/, '')
entry_id = slug + node['href']
entries << [entry_name, entry_id, name]
end

Loading…
Cancel
Save