From 702b39dec5e4418610c7979bb39437e514d55ac3 Mon Sep 17 00:00:00 2001 From: Chris Frederick Date: Tue, 2 Sep 2014 13:34:44 +0900 Subject: [PATCH] Replace the 'name' parameter with 'string' --- lib/jekyll/utils.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/jekyll/utils.rb b/lib/jekyll/utils.rb index 34dff9f3..67fc6637 100644 --- a/lib/jekyll/utils.rb +++ b/lib/jekyll/utils.rb @@ -109,11 +109,11 @@ module Jekyll # Returns the given filename or title in lowercase, with every # sequence of spaces and non-alphanumeric characters replaced with a # hyphen. - def slugify(name) - if name.nil? + def slugify(string) + if string.nil? nil else - name.downcase.gsub(/[^\w]/, " ").strip.gsub(/\s+/, '-') + string.downcase.gsub(/[^\w]/, " ").strip.gsub(/\s+/, '-') end end