summaryrefslogtreecommitdiff
path: root/haml_lint/linter
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-09-12 00:08:44 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-09-12 00:08:44 +0000
commit0f5dcf55e543e2cb30697d4c8ea8ce509cf25375 (patch)
tree213f71f90ed2f6d356a90b0d09e8dbf5d14e816e /haml_lint/linter
parenta66475b6beb46d77b9ff3fe30453be2d52779048 (diff)
downloadgitlab-ce-0f5dcf55e543e2cb30697d4c8ea8ce509cf25375.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'haml_lint/linter')
-rw-r--r--haml_lint/linter/documentation_links.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/haml_lint/linter/documentation_links.rb b/haml_lint/linter/documentation_links.rb
index 75a15c02c17..f8e0eec5cdc 100644
--- a/haml_lint/linter/documentation_links.rb
+++ b/haml_lint/linter/documentation_links.rb
@@ -92,8 +92,7 @@ module HamlLint
File.open(path_to_file).any? do |line|
result = line.match(MARKDOWN_HEADER)
- # 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].delete('*'))) if result
+ string_to_anchor(result[:header]) == anchor if result
end
end
end