diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-07 15:09:04 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-07 15:09:04 +0000 |
commit | cf24d183b3f71f091a02f12b211f3001be5b5085 (patch) | |
tree | f39e5c05483b1f9a2a34d06e52de52750ef5b08e /haml_lint | |
parent | a8653790086d284cecffdc35892bb422cd6c9a7b (diff) | |
download | gitlab-ce-cf24d183b3f71f091a02f12b211f3001be5b5085.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'haml_lint')
-rw-r--r-- | haml_lint/linter/documentation_links.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/haml_lint/linter/documentation_links.rb b/haml_lint/linter/documentation_links.rb index 5bee083e9ec..75a15c02c17 100644 --- a/haml_lint/linter/documentation_links.rb +++ b/haml_lint/linter/documentation_links.rb @@ -93,7 +93,7 @@ module HamlLint 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])) if result + anchor.start_with?(string_to_anchor(result[:header].delete('*'))) if result end end end |