diff options
author | Michael Buffington <michael.buffington@gmail.com> | 2013-06-11 16:00:14 -0700 |
---|---|---|
committer | Michael Buffington <michael.buffington@gmail.com> | 2013-06-11 16:00:14 -0700 |
commit | a2ee7a0af13216e8c68882460350680d7048bb7e (patch) | |
tree | 53f8a33011c33f91388682bc9ed4ab7d50018ff0 | |
parent | 46be4c8fc4948f3050a20de59376d46276f9673e (diff) | |
download | my_new_personal_website-a2ee7a0af13216e8c68882460350680d7048bb7e.tar.xz my_new_personal_website-a2ee7a0af13216e8c68882460350680d7048bb7e.zip |
Revised the regex for JsFiddle plugin after further testing.
-rw-r--r-- | plugins/jsfiddle.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/jsfiddle.rb b/plugins/jsfiddle.rb index 9dcf57e8..0046f9b5 100644 --- a/plugins/jsfiddle.rb +++ b/plugins/jsfiddle.rb @@ -18,7 +18,7 @@ module Jekyll class JsFiddle < Liquid::Tag 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 @sequence = (sequence unless sequence == 'default') || 'js,resources,html,css,result' @skin = (skin unless skin == 'default') || 'light' |