Skip to content

Commit c2a47b3

Browse files
committed
Update regex now that table of contents is in different format
Regex now removes anything that comes after [ or (
1 parent abec0d9 commit c2a47b3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/docs/filters/nim/entries.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ def additional_entries
5555

5656
css('.simple-toc-section a, .nested-toc-section a').each do |node|
5757
entry_name = node.content
58-
entry_name.gsub!(/,.*/, '')
58+
entry_name.gsub!(/(\(|\[).*/, '')
59+
5960
entry_id = slug + node['href']
6061
entries << [entry_name, entry_id, name]
6162
end

0 commit comments

Comments
 (0)