Skip to content

Commit

Permalink
mux: Dirty workaround for name cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
Vodes committed Apr 21, 2024
1 parent b2c8136 commit b58e362
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion muxtools/muxing/mux.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ def clean_name(name: str) -> str:
stripped = stripped.replace(match, "").strip()
warn(f"Unknown token '{match}' was removed.", "Mux")

delimiters = ["-", ".", "/"]
delimiters = ["-", "/"]
if not stripped.endswith("..."):
delimiters.append(".")

while any([stripped.startswith(delim) for delim in delimiters]):
stripped = stripped.lstrip("".join(delimiters)).strip()

Expand Down

0 comments on commit b58e362

Please sign in to comment.