소스 검색

Fix the regexp for Golang generic functions

sharpevo 2 년 전
부모
커밋
f131e1a873
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/docs/filters/go/entries.rb

+ 1 - 1
lib/docs/filters/go/entries.rb

@@ -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}."