Fix the regexp for Golang generic functions

pull/2096/head
sharpevo 1 year ago
parent ab9aeb2622
commit f131e1a873

@ -28,7 +28,7 @@ module Docs
case node.content
when /type\ (\w+)/
name = "#{package}.#{$1}"
when /func\ (?:\(.+\)\ )?(\w+)\(/
when /func\ (?:\(.+\)\ )?(\w+)[\(\[]/
name = "#{$1}()"
name.prepend "#{$1}." if node['href'] =~ /#(\w+)\.#{$1}/
name.prepend "#{package}."

Loading…
Cancel
Save