Fix frontmatter regex

feature/livereload-locales-data
Eliott Appleford 2015-09-30 05:45:34 +01:00 committed by Eliott Appleford
parent 9df1a45301
commit b389c26b4e
1 changed files with 3 additions and 3 deletions

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