mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-30 17:28:29 -05:00
Stricter start of line check via \A
This commit is contained in:
@@ -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!
|
||||
|
||||
Reference in New Issue
Block a user