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/Rules
diff options
context:
space:
mode:
authorConnor Shea <connor.james.shea@gmail.com>2016-11-10 01:42:11 +0300
committerConnor Shea <connor.james.shea@gmail.com>2016-11-10 01:42:11 +0300
commit50e5f86289155b146dd821cd754dbea2c977ae4f (patch)
tree8d03382eb4a551b6e6f9e4f5ad06ad7dda43aebe /Rules
parent770efdd6db8ebd2f128ff615c53b107f8c72f516 (diff)
Whoops.
Diffstat (limited to 'Rules')
-rw-r--r--Rules4
1 files changed, 2 insertions, 2 deletions
diff --git a/Rules b/Rules
index b1d72b29..a7c97606 100644
--- a/Rules
+++ b/Rules
@@ -11,8 +11,8 @@ preprocess do
# Correct the URL.
item[:redirect] = item[:redirect].gsub!(/\.md/, '.html')
end
-
- title = item.raw_content.match(/^[#] .*$/su).to_s
+
+ title = item.raw_content.match(/^[#] .*$/).to_s
title.gsub!('# ', '')
item[:title] = title unless title.empty?
# Encoding errors happen on some files for some reason, so we