Use +rb switches when reading in file for checking existence of YAML header.

Fixes #2228.
This commit is contained in:
Parker Moore 2014-04-15 09:46:53 -04:00
parent 5d6a07e060
commit 29fdc0946a
1 changed files with 1 additions and 1 deletions

View File

@ -419,7 +419,7 @@ module Jekyll
end end
def has_yaml_header?(file) def has_yaml_header?(file)
!!(File.open(file).read =~ /\A---\r?\n/) !!(File.open(file, "rb").read =~ /\A---\r?\n/)
end end
def limit_posts! def limit_posts!