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

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/docs/page.rb')
-rw-r--r--lib/gitlab/docs/page.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/docs/page.rb b/lib/gitlab/docs/page.rb
index 8bd5e9b9..463e3f36 100644
--- a/lib/gitlab/docs/page.rb
+++ b/lib/gitlab/docs/page.rb
@@ -6,8 +6,8 @@ module Gitlab
def initialize(file)
@file = file
- @hrefs = []
- @ids = []
+ @hrefs = Set.new
+ @ids = Set.new
return unless exists?
@@ -31,7 +31,7 @@ module Gitlab
end
def has_anchor?(name)
- @ids.include?(name)
+ @ids.include?(Docs::Element.decode(name.downcase))
end
def self.build(path)