fix regex
This commit is contained in:
parent
22d1fdab54
commit
b9cbce5e5f
|
@ -7,7 +7,7 @@
|
|||
module Jekyll
|
||||
class GistTag < Liquid::Tag
|
||||
def render(context)
|
||||
if tag_contents = @markup.strip.match(/\A(\d+) ?(\S*)\z/)
|
||||
if tag_contents = @markup.strip.match(/\A(\d+) ?(\S*)\Z/)
|
||||
gist_id, filename = tag_contents[1].strip, tag_contents[2].strip
|
||||
gist_script_tag(gist_id, filename)
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue