History

Fix the regexp for Golang generic functions

sharpevo committed 2 years ago

Commit f131e1a1 parent ab9aeb21 file · +1 −1Browse files

Unified · Split

lib/docs/filters/go/entries.rb+1−1
@@ -28,7 +28,7 @@ module Docs · 27 unmodified lines
2828 case node.content
2929 when /type\ (\w+)/
3030 name = "#{package}.#{$1}"
31− when /func\ (?:\(.+\)\ )?(\w+)\(/
31+ when /func\ (?:\(.+\)\ )?(\w+)[\(\[]/
3232 name = "#{$1}()"
3333 name.prepend "#{$1}." if node['href'] =~ /#(\w+)\.#{$1}/
3434 name.prepend "#{package}."

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t