lib/helper.rb in narou-3.8.2 vs lib/helper.rb in narou-3.9.0

- old
+ new

@@ -100,10 +100,10 @@ def print_horizontal_rule(io = $stdout) io.puts HR_TEXT 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