This commit is contained in:
bootstraponline
2012-08-23 11:51:20 -06:00
parent 134432d029
commit e2fbf22f38
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -327,7 +327,7 @@ module Gollum
# Returns the String canonical name.
def self.cname(name, char_white_sub = '-', char_other_sub = '-')
name.respond_to?(:gsub) ?
name.gsub(%r{\s},char_white_sub).gsub(%r{[/<>+]}, char_other_sub) :
name.gsub(%r{\s},char_white_sub).gsub(%r{[<>+]}, char_other_sub) :
''
end