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:
authorAchilleas Pipinellis <axilleas@axilleas.me>2016-11-23 15:13:30 +0300
committerAchilleas Pipinellis <axilleas@axilleas.me>2016-11-23 16:02:57 +0300
commit98b79a4531de4e96af77dbb0b741303987f13a2f (patch)
treecec6ddcfd726cb05d7c9d6b8d0fdef8c8c1b049e /lib
parent6bfa43c1e487befb1a113e498fc6fa17cd658382 (diff)
Revert "Replace punctuation with dash"
This reverts commit 3065d3355dc021f91672d14a1e8cdec3581bcc28.
Diffstat (limited to 'lib')
-rw-r--r--lib/helpers_.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/helpers_.rb b/lib/helpers_.rb
index 35e0afb4..3de84452 100644
--- a/lib/helpers_.rb
+++ b/lib/helpers_.rb
@@ -16,7 +16,7 @@ class HTML < Redcarpet::Render::HTML
def header(text, header_level)
# https://gitlab.com/gitlab-org/gitlab-ce/blob/0676c5c7140ccf5b809eddab79b6fb78b7db0a66/lib/banzai/filter/table_of_contents_filter.rb#L29-32
anchor = text.downcase
- anchor.gsub!(PUNCTUATION_REGEXP, '-') # replace punctuation with dash
+ anchor.gsub!(PUNCTUATION_REGEXP, '') # remove punctuation
anchor.tr!(' ', '-') # replace spaces with dash
anchor.squeeze!('-') # replace multiple dashes with one