mirror of https://github.com/captn3m0/muse-dl.git
9 lines
174 B
Crystal
9 lines
174 B
Crystal
|
module Muse::Dl
|
||
|
class Util
|
||
|
# Generates a safe filename
|
||
|
def self.slug_filename(input : String)
|
||
|
input.strip.tr("\u{202E}%$|:;/\t\r\n\\", "-")
|
||
|
end
|
||
|
end
|
||
|
end
|