mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-08 15:12:10 +08:00
14 lines
322 B
Python
14 lines
322 B
Python
STARPILOT_DISPLAY_VERSION = "6.7"
|
|
|
|
|
|
def starpilot_display_description(description: str | None) -> str:
|
|
if not description:
|
|
return ""
|
|
|
|
parts = [part.strip() for part in description.split(" / ")]
|
|
if not parts:
|
|
return STARPILOT_DISPLAY_VERSION
|
|
|
|
parts[0] = STARPILOT_DISPLAY_VERSION
|
|
return " / ".join(parts)
|