Skip to content

Commit

Permalink
タイトルに ` が含まれていると変換時にエラーが出るのを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
whiteleaf7 committed May 26, 2018
1 parent 59dc969 commit 2e01ecf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ChangeLog.md
@@ -1,6 +1,12 @@
更新履歴 - ChangeLog
====================

3.2.3: 2018/xx/xx
------------------
#### 修正内容
- タイトルに ` が含まれていると変換時にエラーが出ていた


3.2.2: 2018/05/24
------------------
#### 仕様変更
Expand Down
2 changes: 1 addition & 1 deletion lib/helper.rb
Expand Up @@ -98,7 +98,7 @@ def print_horizontal_rule
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!
Expand Down

0 comments on commit 2e01ecf

Please sign in to comment.