move regex to the top
This commit is contained in:
parent
bdd84f275e
commit
00ed567f99
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue