Files
defiQUG c052b07662
Some checks failed
Tests / test (3.10) (push) Has been cancelled
Tests / test (3.11) (push) Has been cancelled
Tests / test (3.12) (push) Has been cancelled
Tests / lint (push) Has been cancelled
Tests / docker (push) Has been cancelled
Initial commit: add .gitignore and README
2026-02-09 21:51:42 -08:00

12 lines
273 B
Python

from __future__ import annotations
def trigger_to_target(s: str) -> str:
assert s[0] == "<"
# Strip off the angle brackets
s = s[1:-1]
# If there is a [wildcard] or similar, strip that off too
if s[-1] == "]":
s = s.split("[")[0]
return s