From 1ad8107a4e9ce65d54d23251e223110fadb18e35 Mon Sep 17 00:00:00 2001 From: Ben Balter Date: Wed, 25 Nov 2015 15:26:57 -0600 Subject: [PATCH] simplify whitespace regex --- lib/jekyll-seo-tag.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jekyll-seo-tag.rb b/lib/jekyll-seo-tag.rb index f638ed3..0f9f649 100644 --- a/lib/jekyll-seo-tag.rb +++ b/lib/jekyll-seo-tag.rb @@ -8,7 +8,7 @@ module Jekyll output = Liquid::Template.parse(template_contents).render!(payload, info) # Minify - output.gsub!(/[\n\s]{2,}/, "\n") + output.gsub!(/[\s]{2,}/, "\n") # Encode smart quotes. See https://github.com/benbalter/jekyll-seo-tag/pull/6 output.gsub!("\u201c", "“")