Revised the regex for JsFiddle plugin after further testing.
This commit is contained in:
parent
46be4c8fc4
commit
a2ee7a0af1
@ -18,7 +18,7 @@
|
|||||||
module Jekyll
|
module Jekyll
|
||||||
class JsFiddle < Liquid::Tag
|
class JsFiddle < Liquid::Tag
|
||||||
def initialize(tag_name, markup, tokens)
|
def initialize(tag_name, markup, tokens)
|
||||||
if /(?<fiddle>\w+)(?:\s+(?<sequence>[\w,\/]+))?(?:\s+(?<skin>\w+))?(?:\s+(?<height>\w+))?(?:\s+(?<width>\w+))?/ =~ markup
|
if /(?<fiddle>\w+\/?\d?)(?:\s+(?<sequence>[\w,]+))?(?:\s+(?<skin>\w+))?(?:\s+(?<height>\w+))?(?:\s+(?<width>\w+))?/ =~ markup
|
||||||
@fiddle = fiddle
|
@fiddle = fiddle
|
||||||
@sequence = (sequence unless sequence == 'default') || 'js,resources,html,css,result'
|
@sequence = (sequence unless sequence == 'default') || 'js,resources,html,css,result'
|
||||||
@skin = (skin unless skin == 'default') || 'light'
|
@skin = (skin unless skin == 'default') || 'light'
|
||||||
|
Loading…
Reference in New Issue
Block a user