diff options
Diffstat (limited to 'lib/gitlab/docs/page.rb')
-rw-r--r-- | lib/gitlab/docs/page.rb | 6 |
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) |