move regex to the top

This commit is contained in:
maul.esel 2013-06-22 15:07:10 +02:00
parent bdd84f275e
commit 00ed567f99
1 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,9 @@
module Jekyll module Jekyll
module Tags module Tags
class IncludeTag < Liquid::Tag class IncludeTag < Liquid::Tag
MATCHER = /(\w+)=(?:"([^"\\]*(?:\\.[^"\\]*)*)"|'([^'\\]*(?:\\.[^'\\]*)*)')/
def initialize(tag_name, markup, tokens) def initialize(tag_name, markup, tokens)
super super
markup.strip! markup.strip!
@ -13,8 +16,6 @@ module Jekyll
end end
end end
MATCHER = /(\w+)=(?:"([^"\\]*(?:\\.[^"\\]*)*)"|'([^'\\]*(?:\\.[^'\\]*)*)')/
def parse_params(markup) def parse_params(markup)
@params = {} @params = {}
pos = 0 pos = 0