diff --git a/haml_lint/linter/documentation_links.rb b/haml_lint/linter/documentation_links.rb index 9aa30ae91e80878a78fc1efa5a2e115c0bac4a2f..5bee083e9ec8130b2963e2e0f2998bb9a05c9d25 100644 --- a/haml_lint/linter/documentation_links.rb +++ b/haml_lint/linter/documentation_links.rb @@ -92,7 +92,7 @@ def correct_anchor?(path_to_file, anchor) File.open(path_to_file).any? do |line| result = line.match(MARKDOWN_HEADER) - # TODO:Do an exact match for anchors + # 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