diff options
Diffstat (limited to 'haml_lint/linter/documentation_links.rb')
-rw-r--r-- | haml_lint/linter/documentation_links.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/haml_lint/linter/documentation_links.rb b/haml_lint/linter/documentation_links.rb index f8e0eec5cdc..5bee083e9ec 100644 --- a/haml_lint/linter/documentation_links.rb +++ b/haml_lint/linter/documentation_links.rb @@ -92,7 +92,8 @@ module HamlLint File.open(path_to_file).any? do |line| result = line.match(MARKDOWN_HEADER) - string_to_anchor(result[:header]) == anchor if result + # TODO:Do an exact match for anchors (Follow-up https://gitlab.com/gitlab-org/gitlab/-/merge_requests/39850) + anchor.start_with?(string_to_anchor(result[:header])) if result end end end |