From 2f5df77c0023fa1edb2a87a3b5db340490434d99 Mon Sep 17 00:00:00 2001 From: Charlie Collett Date: Fri, 30 Aug 2024 13:04:18 -0700 Subject: [PATCH] Properly anchor the grep --- summary.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/summary.py b/summary.py index 81251f6..efdf068 100644 --- a/summary.py +++ b/summary.py @@ -41,12 +41,12 @@ def analyze_logs(log_content): python_version = None issues_found = False - # Patterns to capture specific environment information - id_pattern = re.compile(r'^#\d+\.\d+ ID: (.+)') - version_id_pattern = re.compile(r'^#\d+\.\d+ VERSION_ID: (.+)') - version_codename_pattern = re.compile(r'^#\d+\.\d+ VERSION_CODENAME: (.+)') - full_version_pattern = re.compile(r'^#\d+\.\d+ FULL VERSION: (.+)') - python_version_pattern = re.compile(r'^#\d+\.\d+ LANGUAGE VERSION: (.+)') + # Corrected patterns to capture actual output content + id_pattern = re.compile(r'^ID: (.+)') + version_id_pattern = re.compile(r'^VERSION_ID: "(.+)"') + version_codename_pattern = re.compile(r'^VERSION_CODENAME: (.+)') + full_version_pattern = re.compile(r'^FULL VERSION: (.+)') + python_version_pattern = re.compile(r'^LANGUAGE VERSION: (.+)') # Patterns to capture possible errors error_patterns = [