From 99721ee8aab2b08064dc56a9782997a403b21d2e Mon Sep 17 00:00:00 2001 From: "maul.esel" Date: Sat, 15 Jun 2013 18:19:52 +0200 Subject: [PATCH] To satisfy Ruby 1.8.7, use look-ahead instead of look-behind --- lib/jekyll/tags/include.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jekyll/tags/include.rb b/lib/jekyll/tags/include.rb index ffc28e0b..0ad64bad 100644 --- a/lib/jekyll/tags/include.rb +++ b/lib/jekyll/tags/include.rb @@ -20,7 +20,7 @@ module Jekyll pos = 0 # ensure the entire markup string from start to end is valid syntax, and params are separated by spaces - full_matcher = Regexp.compile('\A\s*(?:(?<=\s|\A)' + MATCHER.to_s + '\s*)*\z') + full_matcher = Regexp.compile('\A\s*(?:' + MATCHER.to_s + '(?=\s|\z)\s*)*\z') if not markup =~ full_matcher raise SyntaxError.new <<-eos Invalid syntax for include tag: