From b389c26b4edacd03779a7452419c52d8002bdb5c Mon Sep 17 00:00:00 2001 From: Eliott Appleford Date: Wed, 30 Sep 2015 05:45:34 +0100 Subject: [PATCH] Fix frontmatter regex --- middleman-core/lib/middleman-core/util/data.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/middleman-core/lib/middleman-core/util/data.rb b/middleman-core/lib/middleman-core/util/data.rb index ec41532e..060b8f65 100644 --- a/middleman-core/lib/middleman-core/util/data.rb +++ b/middleman-core/lib/middleman-core/util/data.rb @@ -24,10 +24,10 @@ module Middleman::Util::Data end / - \A(.*?coding:.*?\r?\n)? - (?[-;]{3})[ ]*\r?\n + \A(?:[^\r\n]*coding:[^\r\n]*\r?\n)? + (?---|;;;)[ ]*\r?\n (?.*?)[ ]*\r?\n? - (?^[-.;]{3})[ ]*\r?\n? + ^(?---|\.\.\.|;;;)[ ]*\r?\n? \r?\n? (?.*) /mx =~ content