diff options
author | Paweł Jastrzębski <pawelj@iosphe.re> | 2017-11-10 17:32:34 +0100 |
---|---|---|
committer | Paweł Jastrzębski <pawelj@iosphe.re> | 2017-11-10 17:32:34 +0100 |
commit | ac81a6be4b646dcf519fea9e9450f2120733ec36 (patch) | |
tree | c75708e0cee4f51009f1178d20aac860179e8fbb /kindlecomicconverter | |
parent | Experimental KFX output (diff) | |
download | kcc-ac81a6be4b646dcf519fea9e9450f2120733ec36.tar.gz kcc-ac81a6be4b646dcf519fea9e9450f2120733ec36.tar.bz2 kcc-ac81a6be4b646dcf519fea9e9450f2120733ec36.zip |
Fixed dot processing in directory names
Diffstat (limited to 'kindlecomicconverter')
-rwxr-xr-x | kindlecomicconverter/comic2ebook.py | 1 |
1 files changed, 1 insertions, 0 deletions
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)) |