diff --git a/lib/jekyll-seo-tag/drop.rb b/lib/jekyll-seo-tag/drop.rb index 7cc5a6a..e997536 100644 --- a/lib/jekyll-seo-tag/drop.rb +++ b/lib/jekyll-seo-tag/drop.rb @@ -207,8 +207,8 @@ module Jekyll end def format_string(string) - FORMAT_STRING_METHODS.each do |method| - string = filters.public_send(method, string) + string = FORMAT_STRING_METHODS.reduce(string) do |memo, method| + filters.public_send(method, memo) end string unless string.empty?