Merge pull request #1611 from middleman/Arcovion-patch-2

Fix frontmatter regex
This commit is contained in:
Eliott Appleford 2015-09-30 08:17:18 +01:00
commit 9686c1ec7a

View file

@ -24,10 +24,10 @@ module Middleman::Util::Data
end
/
\A(.*?coding:.*?\r?\n)?
(?<start>[-;]{3})[ ]*\r?\n
\A(?:[^\r\n]*coding:[^\r\n]*\r?\n)?
(?<start>---|;;;)[ ]*\r?\n
(?<frontmatter>.*?)[ ]*\r?\n?
(?<stop>^[-.;]{3})[ ]*\r?\n?
^(?<stop>---|\.\.\.|;;;)[ ]*\r?\n?
\r?\n?
(?<additional_content>.*)
/mx =~ content