diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-12 00:08:44 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-12 00:08:44 +0000 |
commit | 0f5dcf55e543e2cb30697d4c8ea8ce509cf25375 (patch) | |
tree | 213f71f90ed2f6d356a90b0d09e8dbf5d14e816e /haml_lint/linter | |
parent | a66475b6beb46d77b9ff3fe30453be2d52779048 (diff) | |
download | gitlab-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.rb | 3 |
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 |