diff options
author | Connor Shea <connor.james.shea@gmail.com> | 2016-11-10 01:42:11 +0300 |
---|---|---|
committer | Connor Shea <connor.james.shea@gmail.com> | 2016-11-10 01:42:11 +0300 |
commit | 50e5f86289155b146dd821cd754dbea2c977ae4f (patch) | |
tree | 8d03382eb4a551b6e6f9e4f5ad06ad7dda43aebe /Rules | |
parent | 770efdd6db8ebd2f128ff615c53b107f8c72f516 (diff) |
Whoops.
Diffstat (limited to 'Rules')
-rw-r--r-- | Rules | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |