Skip to content

Commit d3bd912

Browse files
committed
Fixed issue with slug creation.
I screwed up slightly when creating slugs, and was accidently removing _s. Now it's fixed.
1 parent 51fffe8 commit d3bd912

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

utility.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ def require_directory dirname
1414

1515
class String
1616
def to_slug
17-
self.gsub(/\W/, "").gsub(/\s/, "_").downcase
17+
self.gsub(/[^a-zA-Z _]/, "").gsub(/\s/, "_").downcase
1818
end
1919
end

0 commit comments

Comments
 (0)