Skip to content

Commit

Permalink
Fixed dot procesing for real this time
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Nov 10, 2017
1 parent 6acf1a1 commit fe554c2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions kindlecomicconverter/comic2ebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -899,10 +899,9 @@ def createNewTome():

def slugify(value, isdir):
if isdir:
value = slugifyExt(value, regex_pattern=r'[^-a-z0-9_\.]+')
value = value.rstrip('.')
value = slugifyExt(value, regex_pattern=r'[^-a-z0-9_\.]+').strip('.')
else:
value = slugifyExt(value)
value = slugifyExt(value).strip('.')
value = sub(r'0*([0-9]{4,})', r'\1', sub(r'([0-9]+)', r'0000\1', value, count=2))
return value

Expand Down

0 comments on commit fe554c2

Please sign in to comment.