Skip to content

Commit

Permalink
updated process_fullname
Browse files Browse the repository at this point in the history
  • Loading branch information
annapurna-gupta committed Feb 18, 2025
1 parent 3bb035a commit 7b4acaf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions mslib/mscolab/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,11 +259,10 @@ def process_fullname(fullname):
processed_parts = []
for part in parts:
if "-" in part:
subparts = part.split("-")
processed_subparts = [slugify(subpart) for subpart in subparts]
if not all(processed_subparts):
processed_part = slugify(part)
if not processed_part:
return {"success": False, "message": "Fullname contains invalid part after processing."}
processed_parts.append("-".join(processed_subparts))
processed_parts.append(processed_part)
else:
processed_part = slugify(part)
if not processed_part:
Expand Down

0 comments on commit 7b4acaf

Please sign in to comment.