From 3f4f4910cad65ea1051ea2205f8b243fe3e3c4fa Mon Sep 17 00:00:00 2001 From: Frank Taillandier Date: Fri, 26 Oct 2018 16:22:16 +0200 Subject: [PATCH] style: immutable constant --- lib/jekyll-feed/generator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jekyll-feed/generator.rb b/lib/jekyll-feed/generator.rb index 4b3ce552..13684056 100644 --- a/lib/jekyll-feed/generator.rb +++ b/lib/jekyll-feed/generator.rb @@ -25,7 +25,7 @@ def generate(site) # 1. A '>', which closes an XML tag or # 2. A '}', which closes a Liquid tag # We will strip all of this whitespace to minify the template - MINIFY_REGEX = %r!(?<=>|})\s+! + MINIFY_REGEX = %r!(?<=>|})\s+!.freeze # Returns the plugin's config or an empty hash if not set def config