summaryrefslogtreecommitdiff
path: root/lib/banzai
diff options
context:
space:
mode:
authorReuben Pereira <reuben453@gmail.com>2018-07-03 10:15:56 +0530
committerReuben Pereira <reuben453@gmail.com>2018-07-03 10:15:56 +0530
commitc8302b2f50efad5c159fb9e01598259c80887dac (patch)
tree83bfaf8c0693df551431f04aee1eee720a881f94 /lib/banzai
parent07ac9ee2f0861135e6cd514e956e6eb7019e7096 (diff)
downloadgitlab-ce-c8302b2f50efad5c159fb9e01598259c80887dac.tar.gz
Correct the comments above the ProjectReferenceFilter#project_link_filter function to make it clear that the full project path is required in a reference.
Diffstat (limited to 'lib/banzai')
-rw-r--r--lib/banzai/filter/project_reference_filter.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/banzai/filter/project_reference_filter.rb b/lib/banzai/filter/project_reference_filter.rb
index 8bc4ceb92cd..6f257a2d70d 100644
--- a/lib/banzai/filter/project_reference_filter.rb
+++ b/lib/banzai/filter/project_reference_filter.rb
@@ -44,13 +44,13 @@ module Banzai
doc
end
- # Replace `project>` project references in text with links to the referenced
+ # Replace `namespace/project>` project references in text with links to the referenced
# project page.
#
# text - String text to replace references in.
# link_content - Original content of the link being replaced.
#
- # Returns a String with `project>` references replaced with links. All links
+ # Returns a String with `namespace/project>` references replaced with links. All links
# have `gfm` and `gfm-project` class names attached for styling.
def project_link_filter(text, link_content: nil)
self.class.references_in(text) do |match, project_path|