fixed BUG-115 move to existing paths can contain dashes

This commit is contained in:
2023-01-12 17:12:48 +11:00
parent 9aa0f8157d
commit e1af427fad
2 changed files with 2 additions and 3 deletions

View File

@@ -809,7 +809,8 @@ def GetExistingPathsAsDiv(dt):
continue
if not first_dir:
ret +=", "
bits=dir.rel_path.split('-')
# maxsplit 1, means bits[1] can contain dashes
bits=dir.rel_path.split('-',maxsplit=1)
ret+= '{ '
ret+= '"prefix":"' + bits[0] + '-", '