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