From 00ed567f9996c278a8d426b60711dfb124026429 Mon Sep 17 00:00:00 2001 From: "maul.esel" Date: Sat, 22 Jun 2013 15:07:10 +0200 Subject: [PATCH] move regex to the top --- lib/jekyll/tags/include.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/jekyll/tags/include.rb b/lib/jekyll/tags/include.rb index 54cee900..68636890 100644 --- a/lib/jekyll/tags/include.rb +++ b/lib/jekyll/tags/include.rb @@ -1,6 +1,9 @@ module Jekyll module Tags class IncludeTag < Liquid::Tag + + MATCHER = /(\w+)=(?:"([^"\\]*(?:\\.[^"\\]*)*)"|'([^'\\]*(?:\\.[^'\\]*)*)')/ + def initialize(tag_name, markup, tokens) super markup.strip! @@ -13,8 +16,6 @@ module Jekyll end end - MATCHER = /(\w+)=(?:"([^"\\]*(?:\\.[^"\\]*)*)"|'([^'\\]*(?:\\.[^'\\]*)*)')/ - def parse_params(markup) @params = {} pos = 0