Skip to content

Commit b27d525

Browse files
committed
[API] Generator: Fix regexp for docs url
1 parent 9bd9e2f commit b27d525

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elasticsearch-api/utils/thor/templates/_documentation_top.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@
2424
<% end -%>
2525
<%= ' '*(@namespace_depth+3) -%>#
2626
<%# Documentation link -%>
27-
<%= ' '*(@namespace_depth+3) %># @see <%= @spec['documentation']['url'] ? @spec['documentation']['url'].gsub(/\/current|master\//, "#{Elasticsearch::API::FilesHelper.gem_version}/") : "[TODO]" %>
27+
<%= ' '*(@namespace_depth+3) %># @see <%= @spec['documentation']['url'] ? @spec['documentation']['url'].gsub(/\/(current|master)\//, "/#{Elasticsearch::API::FilesHelper.gem_version}/") : "[TODO]" %>
2828
<%= ' '*(@namespace_depth+3) %>#

0 commit comments

Comments
 (0)