From b666ac787bd0771532e295bb3466b8d71beb2b6c Mon Sep 17 00:00:00 2001 From: Ben Balter Date: Fri, 11 Apr 2014 15:15:37 -0400 Subject: [PATCH] Stricter start of line check via \A --- lib/jekyll/site.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jekyll/site.rb b/lib/jekyll/site.rb index f6fc89c0..ecfaa6a7 100644 --- a/lib/jekyll/site.rb +++ b/lib/jekyll/site.rb @@ -374,7 +374,7 @@ module Jekyll end def has_yaml_header?(file) - !!(File.open(file).read =~ /^---\r?\n/) + !!(File.open(file).read =~ /\A---\r?\n/) end def limit_posts!