Skip to content

Commit

Permalink
Rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
hakanensari committed Oct 3, 2024
1 parent 0f1e2e4 commit 27d0425
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/generator/formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def convert_doc_links_to_full_url(text)
end
end

def convert_http_links_to_yard(text)
def convert_html_links_to_yard(text)
text.gsub(%r{<a href=['"]([^'"]+)['"]>([^<]+)</a>}) do
url = Regexp.last_match(1)
link_text = Regexp.last_match(2)
Expand Down
4 changes: 2 additions & 2 deletions lib/generator/operation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def description
lines.reject! { |line| line.strip == "" }
description = lines.join("\n").strip

description = convert_http_links_to_yard(description)
description = convert_html_links_to_yard(description)
description = convert_doc_links_to_full_url(description)

split_long_comment_line(description, 6)
Expand Down Expand Up @@ -61,7 +61,7 @@ def tags
output << "@return [Hash] The API response"

output.map do |line|
line = convert_http_links_to_yard(line)
line = convert_html_links_to_yard(line)
line = convert_doc_links_to_full_url(line)
split_long_comment_line(line, 6, 2)
end
Expand Down

0 comments on commit 27d0425

Please sign in to comment.