lib/helper.rb in narou-3.2.2 vs lib/helper.rb in narou-3.2.3
- old
+ new
@@ -96,10 +96,10 @@
def print_horizontal_rule
puts "―" * 35
end
def replace_filename_special_chars(str, invalid_replace = false)
- result = str.tr("/:*?\"<>|.", "/:*?”〈〉|.").gsub("\\", "¥").gsub("\t", "").gsub("\n", "")
+ result = str.tr("/:*?\"<>|.`", "/:*?”〈〉|.`").gsub("\\", "¥").gsub("\t", "").gsub("\n", "")
if Inventory.load("local_setting")["normalize-filename"]
begin
result.unicode_normalize!
rescue Encoding::CompatibilityError
end