From 3a3c9d00702cd8c2bd8cffbdf8600a584a14bc09 Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Tue, 24 Nov 2026 06:49:12 -0700 Subject: [PATCH] A short model name matches a segment of the part after the pick's last slash only Co-Authored-By: Claude Sonnet 5.5 --- sisi/models.py | 4 ++-- tests/test_core.py | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/sisi/models.py b/sisi/models.py index 0373c2c..bc7d463 100644 --- a/sisi/models.py +++ b/sisi/models.py @@ -118,10 +118,10 @@ def is_call(command_line): def claim(s, text, segment=False): """Spend the pick that this delegation's model text names; False when none of the picks fits. With `segment` (the - host names its models shortly: `fast` for `maker-fast-2`) one whole segment of a picked id that has a letter fits.""" + host names its models shortly: `fast` for `maker-fast-2`) one whole `-` segment of a picked id's last `/` part that has a letter fits.""" for name in s.get("picked") or []: if any(re.search(r"(?