aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorMichael Buffington <michael.buffington@gmail.com>2013-06-11 15:37:15 -0700
committerMichael Buffington <michael.buffington@gmail.com>2013-06-11 15:37:15 -0700
commit46be4c8fc4948f3050a20de59376d46276f9673e (patch)
treef7121f92b0347ec13ee08f49ee8b8d28f1ce023a /plugins
parente83dfccc4f6f2db6283918af1743e63278807089 (diff)
downloadmy_new_personal_website-46be4c8fc4948f3050a20de59376d46276f9673e.tar.xz
my_new_personal_website-46be4c8fc4948f3050a20de59376d46276f9673e.zip
Adjusted JsFiddle plugin to detect jsFiddle versions.
Prior to this change, {% jsFiddle ccWP7/5 result,js,html %} wouldn't render the desired tab order properly since the regex pattern was being capturing the /5 as part of the first of the tabs.
Diffstat (limited to '')
-rw-r--r--plugins/jsfiddle.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/jsfiddle.rb b/plugins/jsfiddle.rb
index a80becb3..9dcf57e8 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+)(?:\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'