mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-31 01:38:24 -05:00
tie down the regex match on gist filenames
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
module Jekyll
|
||||
class GistTag < Liquid::Tag
|
||||
def render(context)
|
||||
if tag_contents = @markup.match(/(\d+) (.*)/)
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user