Commit 9eaaa7cd authored by Robert Speicher's avatar Robert Speicher

Minor doc fix

[ci skip]
parent 5b6c1a21
...@@ -40,7 +40,7 @@ module Gitlab ...@@ -40,7 +40,7 @@ module Gitlab
# Yields the current node's String contents. The result of the block will # Yields the current node's String contents. The result of the block will
# replace the node's existing content and update the current document. # replace the node's existing content and update the current document.
# #
# Returns the updated Nokogiri::Document object. # Returns the updated Nokogiri::XML::Document object.
def replace_text_nodes_matching(pattern) def replace_text_nodes_matching(pattern)
doc.search('text()').each do |node| doc.search('text()').each do |node|
content = node.to_html content = node.to_html
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment