def extract_bug_id_from_item_id()

in jbi/queue.py [0:0]


def extract_bug_id_from_item_id(item_id: str) -> str:
    if match := re.search(ITEM_ID_PATTERN, item_id):
        return match.group("bug_id")
    raise ValueError(
        "item_id %s did not match expected format: %s", item_id, ITEM_ID_PATTERN.pattern
    )