Skip to content

Commit 09a274b

Browse files
author
Bulat Shakirzyanov
committed
fix regexp to work with interfaces
1 parent 6f5f9c8 commit 09a274b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doxygen.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
end
2121

2222
# method return typehints
23-
text.gsub!(/(\/\*\*[\s\S]*?@return\s+([^\s]*)[\s\S]*?\*\/[\s\S]*?)((public|protected|private)(\s+static)?)\s+function\s+([\S]*?)\s*?\(/, '\1 \3 \2 function \6(')
23+
text.gsub!(/(\/\*\*[\s\S]*?@return\s+([^\s]*)[\s\S]*?\*\/[\s\S]*?)((public|protected|private)(\s+static)?)?\s+function\s+([\S]*?)\s*?\(/, '\1 \3 \2 function \6(')
2424
text.gsub!(/\@return/, '@retval')
2525

2626
puts text

0 commit comments

Comments
 (0)