pass_typer: Add matching rule for TSRC Pidgey servers

This commit is contained in:
Adam Goldsmith 2022-07-06 23:25:31 -04:00
parent bb68fea1b4
commit f2c68a5f17

View File

@ -22,6 +22,8 @@ def alias(server_name):
return f"cms/{user}{at}ipads" return f"cms/{user}{at}ipads"
case [user, at, ("octopi-taz-6" | "octopi-lulzbot-mini")]: case [user, at, ("octopi-taz-6" | "octopi-lulzbot-mini")]:
return f"cms/{user}{at}octopi" return f"cms/{user}{at}octopi"
case [user, at, server] if re.match(".*-pidgey(.vpn)?", server):
return f"tsrc/pidgey"
case _: case _:
return f"**/{server_name}" return f"**/{server_name}"