Skip to content

Commit

Permalink
Properly anchor the grep
Browse files Browse the repository at this point in the history
  • Loading branch information
cscollett committed Aug 30, 2024
1 parent ee06f6f commit 2f5df77
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 2f5df77

Please sign in to comment.