Cleaned up unnecessary string munging

This commit is contained in:
Ryan Davis 2011-03-02 00:24:17 -08:00
parent b3634b522a
commit bd01e647a7
1 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,5 @@
require "English"
# Convertible provides methods for converting a pagelike item # Convertible provides methods for converting a pagelike item
# from a certain type of markup into actual content # from a certain type of markup into actual content
# #
@ -24,7 +26,7 @@ module Jekyll
self.content = File.read(File.join(base, name)) self.content = File.read(File.join(base, name))
if self.content =~ /^(---\s*\n.*?\n?)^(---\s*$\n?)/m if self.content =~ /^(---\s*\n.*?\n?)^(---\s*$\n?)/m
self.content = self.content[($1.size + $2.size)..-1] self.content = $POSTMATCH
begin begin
self.data = YAML.load($1) self.data = YAML.load($1)