diff --git a/lib/to_slug.rb b/lib/to_slug.rb index a24d3da..026b64c 100644 --- a/lib/to_slug.rb +++ b/lib/to_slug.rb @@ -17,7 +17,7 @@ module ToSlug def to_slug # Perform transliteration to replace non-ascii characters with an ascii # character - value = self.mb_chars.normalize(:kd).gsub(/[^\x00-\x7F]/n, '') + value = self.mb_chars.normalize(:kd).gsub(/[^\x00-\x7F]/n, '').to_s # Remove single quotes from input value.gsub!(/[']+/, '')