mirror of
https://github.com/ciromattia/kcc
synced 2025-12-15 02:36:44 +00:00
Fixed dot procesing for real this time
This commit is contained in:
@@ -899,10 +899,9 @@ def createNewTome():
|
|||||||
|
|
||||||
def slugify(value, isdir):
|
def slugify(value, isdir):
|
||||||
if isdir:
|
if isdir:
|
||||||
value = slugifyExt(value, regex_pattern=r'[^-a-z0-9_\.]+')
|
value = slugifyExt(value, regex_pattern=r'[^-a-z0-9_\.]+').strip('.')
|
||||||
value = value.rstrip('.')
|
|
||||||
else:
|
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))
|
value = sub(r'0*([0-9]{4,})', r'\1', sub(r'([0-9]+)', r'0000\1', value, count=2))
|
||||||
return value
|
return value
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user