Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzegorz@gitlab.com>2019-02-26 11:17:33 +0300
committerGrzegorz Bizon <grzegorz@gitlab.com>2019-02-26 11:17:33 +0300
commite60c23c066948e72a585c9842b70b683e06459d4 (patch)
tree74930dd5956a6a68f7b4453cfa633ad38f11af3e /lib
parent7a2d43da1086b8992ab6beec4f329f65083600ba (diff)
Exclude links with empty anchors from validation
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/docs/link.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/docs/link.rb b/lib/gitlab/docs/link.rb
index 921a3d45..059ebaf1 100644
--- a/lib/gitlab/docs/link.rb
+++ b/lib/gitlab/docs/link.rb
@@ -9,7 +9,7 @@ module Gitlab
end
def to_anchor?
- !anchor_name.to_s.empty?
+ !anchor_name.to_s.strip.empty?
end
def anchor_name