module Dpl::Github
Public Instance Methods
normalize_filename(str)
click to toggle source
# File lib/dpl/helper/github.rb, line 13 def normalize_filename(str) str = File.basename(str) str = str.split(' ').first str = transliterate(str) str.gsub(/[^\w@+\-_]/, '.') end