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
28 case node.content28 case node.content
29 when /type\ (\w+)/29 when /type\ (\w+)/
30 name = "#{package}.#{$1}"30 name = "#{package}.#{$1}"
31 when /func\ (?:\(.+\)\ )?(\w+)\(/31 when /func\ (?:\(.+\)\ )?(\w+)[\(\[]/
32 name = "#{$1}()"32 name = "#{$1}()"
33 name.prepend "#{$1}." if node['href'] =~ /#(\w+)\.#{$1}/33 name.prepend "#{$1}." if node['href'] =~ /#(\w+)\.#{$1}/
34 name.prepend "#{package}."34 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