Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/banzai/filter/gollum_tags_filter.rb')
-rw-r--r--lib/banzai/filter/gollum_tags_filter.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/banzai/filter/gollum_tags_filter.rb b/lib/banzai/filter/gollum_tags_filter.rb
index 0548d5a9997..ade4f82e54b 100644
--- a/lib/banzai/filter/gollum_tags_filter.rb
+++ b/lib/banzai/filter/gollum_tags_filter.rb
@@ -57,7 +57,7 @@ module Banzai
ALLOWED_IMAGE_EXTENSIONS = /.+(jpg|png|gif|svg|bmp)\z/i.freeze
# Do not perform linking inside these tags.
- IGNORED_ANCESTOR_TAGS = %w(pre code tt).to_set
+ IGNORED_ANCESTOR_TAGS = %w[pre code tt].to_set
def call
doc.xpath('descendant-or-self::text()').each do |node|
@@ -115,7 +115,7 @@ module Banzai
end
def url?(path)
- path.start_with?(*%w(http https))
+ path.start_with?(*%w[http https])
end
# Attempt to process the tag as a page link tag.