From bdd84f275ea53da95b598e9c829ca66266199a3c Mon Sep 17 00:00:00 2001 From: "maul.esel" Date: Sat, 15 Jun 2013 18:28:26 +0200 Subject: [PATCH] Ruby 1.8.7 only supports 1 param to Regexp.match() --- lib/jekyll/tags/include.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/jekyll/tags/include.rb b/lib/jekyll/tags/include.rb index 0ad64bad..54cee900 100644 --- a/lib/jekyll/tags/include.rb +++ b/lib/jekyll/tags/include.rb @@ -34,8 +34,8 @@ Valid syntax: eos end - while match = MATCHER.match(markup, pos) do - pos = match.end(0) + while match = MATCHER.match(markup) do + markup = markup[match.end(0)..-1] if match[2] value = match[2].gsub(/\\"/, '"')