Skip to content

Commit 1ad8107

Browse files
committed
simplify whitespace regex
1 parent a355e6e commit 1ad8107

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jekyll-seo-tag.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def render(context)
88
output = Liquid::Template.parse(template_contents).render!(payload, info)
99

1010
# Minify
11-
output.gsub!(/[\n\s]{2,}/, "\n")
11+
output.gsub!(/[\s]{2,}/, "\n")
1212

1313
# Encode smart quotes. See https://github.com/benbalter/jekyll-seo-tag/pull/6
1414
output.gsub!("\u201c", "“")

0 commit comments

Comments
 (0)