Fix frontmatter regex
This commit is contained in:
parent
9df1a45301
commit
b389c26b4e
|
@ -24,10 +24,10 @@ module Middleman::Util::Data
|
||||||
end
|
end
|
||||||
|
|
||||||
/
|
/
|
||||||
\A(.*?coding:.*?\r?\n)?
|
\A(?:[^\r\n]*coding:[^\r\n]*\r?\n)?
|
||||||
(?<start>[-;]{3})[ ]*\r?\n
|
(?<start>---|;;;)[ ]*\r?\n
|
||||||
(?<frontmatter>.*?)[ ]*\r?\n?
|
(?<frontmatter>.*?)[ ]*\r?\n?
|
||||||
(?<stop>^[-.;]{3})[ ]*\r?\n?
|
^(?<stop>---|\.\.\.|;;;)[ ]*\r?\n?
|
||||||
\r?\n?
|
\r?\n?
|
||||||
(?<additional_content>.*)
|
(?<additional_content>.*)
|
||||||
/mx =~ content
|
/mx =~ content
|
||||||
|
|
Loading…
Reference in a new issue