mirror of
https://github.com/ciromattia/kcc
synced 2025-12-12 17:26:23 +00:00
Fixed dot processing in directory names
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user