lib/jekyll/jekyll-sitemap.rb in jekyll-sitemap-1.2.0 vs lib/jekyll/jekyll-sitemap.rb in jekyll-sitemap-1.3.0
- old
+ new
@@ -25,10 +25,10 @@
# Matches all whitespace that follows
# 1. A '>' followed by a newline or
# 2. A '}' which closes a Liquid tag
# We will strip all of this whitespace to minify the template
- MINIFY_REGEX = %r!(?<=>\n|})\s+!
+ MINIFY_REGEX = %r!(?<=>\n|})\s+!.freeze
# Array of all non-jekyll site files with an HTML extension
def static_files
@site.static_files.select { |file| INCLUDED_EXTENSIONS.include? file.extname }
end