ensure filename has an allowed extension

This commit is contained in:
Tom Preston-Werner
2010-04-08 16:31:28 -07:00
parent 3ff115048d
commit a328e15dc3
2 changed files with 11 additions and 5 deletions
+1 -1
View File
@@ -18,6 +18,6 @@ module Gollum
#
# Returns the String canonical name.
def self.canonical_name(name)
name.gsub(/ /, '-').sub(/\.(.+?)$/, '')
name.gsub(/ /, '-')
end
end