From e057d0adf3974b09a02aa363e7effb92673d2a7b Mon Sep 17 00:00:00 2001 From: Lorin Werthen Date: Thu, 9 Feb 2017 02:35:23 +0100 Subject: [PATCH] tiny cleanup --- lib/helpers/preprocess.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/helpers/preprocess.rb b/lib/helpers/preprocess.rb index 5d2882c..d7a4121 100644 --- a/lib/helpers/preprocess.rb +++ b/lib/helpers/preprocess.rb @@ -8,7 +8,7 @@ module PreprocessHelper def update_blog_attributes @items.find_all('/blog/**/*').each do |i| - year_str = %r{/(\d\d-\d\d)/}.match(i.identifier).captures[0] + year_str = i.identifier.to_s[/\d\d-\d\d/] attr_hash = { # Tag all posts with article (for Blogging helper)