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 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