mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-30 01:08:26 -05:00
Use +rb switches when reading in file for checking existence of YAML header.
Fixes #2228.
This commit is contained in:
@@ -419,7 +419,7 @@ module Jekyll
|
||||
end
|
||||
|
||||
def has_yaml_header?(file)
|
||||
!!(File.open(file).read =~ /\A---\r?\n/)
|
||||
!!(File.open(file, "rb").read =~ /\A---\r?\n/)
|
||||
end
|
||||
|
||||
def limit_posts!
|
||||
|
||||
Reference in New Issue
Block a user