From ac81a6be4b646dcf519fea9e9450f2120733ec36 Mon Sep 17 00:00:00 2001 From: Paweł Jastrzębski Date: Fri, 10 Nov 2017 17:32:34 +0100 Subject: Fixed dot processing in directory names --- kindlecomicconverter/comic2ebook.py | 1 + 1 file changed, 1 insertion(+) (limited to 'kindlecomicconverter') diff --git a/kindlecomicconverter/comic2ebook.py b/kindlecomicconverter/comic2ebook.py index ffff62f..8714fcf 100755 --- a/kindlecomicconverter/comic2ebook.py +++ b/kindlecomicconverter/comic2ebook.py @@ -900,6 +900,7 @@ def createNewTome(): def slugify(value, isdir): if isdir: value = slugifyExt(value, regex_pattern=r'[^-a-z0-9_\.]+') + value = value.rstrip('.') else: value = slugifyExt(value) value = sub(r'0*([0-9]{4,})', r'\1', sub(r'([0-9]+)', r'0000\1', value, count=2)) -- cgit 1.4.1