From 7089761488dee2833faec944e97c7fd763dec9b2 Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Sat, 18 Apr 2026 17:51:44 -0500 Subject: [PATCH] Fix: updates.xml regex only matches target stability block, restore correct SHAs The Python regex now uses negative lookahead (?:(?!).)*? to prevent matching across multiple blocks. All channels restored with correct SHA (0f1cf23a...) matching the v03 stable ZIP. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0b0d51d..381a8d9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -314,9 +314,9 @@ jobs: with open("updates.xml", "r") as f: content = f.read() - # Build regex to find the block containing this stability tag - # Match from to that contains xml_tag - block_pattern = r"(.*?" + re.escape(xml_tag) + r".*?)" + # Build regex to find the specific block for this stability tag + # Use negative lookahead to avoid matching across multiple blocks + block_pattern = r"((?:(?!).)*?" + re.escape(xml_tag) + r".*?)" match = re.search(block_pattern, content, re.DOTALL) if not match: