From f64fecfbdf6d4d5b077d0c8b87ee832d1e049bf1 Mon Sep 17 00:00:00 2001 From: Dawid Harat Date: Tue, 14 Jan 2020 23:25:11 +0100 Subject: [PATCH] jekyll-example fix --- pages/_plugins/jekyll-example.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pages/_plugins/jekyll-example.rb b/pages/_plugins/jekyll-example.rb index 185e53d3c..5befe665f 100644 --- a/pages/_plugins/jekyll-example.rb +++ b/pages/_plugins/jekyll-example.rb @@ -29,7 +29,7 @@ module Jekyll class ExampleBlock < Liquid::Block include Liquid::StandardFilters - SYNTAX = /^([a-zA-Z0-9.+#-]+)((\s+[\w-]+(=((\w|[0-9_-])+|"([0-9]+\s)*[0-9]+"))?)*)$/ + SYNTAX = /^([a-zA-Z0-9.+#-]+)((\s+[\w-]+(=((\w|[0-9_-])+|"(\w|[0-9_-]|\s)+"))?)*)$/ def initialize(tag_name, markup, tokens) super @@ -47,7 +47,6 @@ module Jekyll # If a quoted list, convert to array if value && value.include?("\"") value.gsub!(/"/, "") - value = value.split end @options[key.to_sym] = value || true end