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