From 1eacb849f5925f2d2a1e5769a87057fa66845f05 Mon Sep 17 00:00:00 2001 From: TSR Berry <20988865+TSRBerry@users.noreply.github.com> Date: Wed, 3 May 2023 00:53:48 +0200 Subject: [PATCH] Convert all ids to uppercase --- robocop_ng/cogs/logfilereader.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/robocop_ng/cogs/logfilereader.py b/robocop_ng/cogs/logfilereader.py index fa97abe..31f40cc 100644 --- a/robocop_ng/cogs/logfilereader.py +++ b/robocop_ng/cogs/logfilereader.py @@ -90,7 +90,7 @@ class LogFileReader(Cog): game_name = game_name.group(1).rstrip() app_id_regex = re.match(r".* \[([a-zA-Z0-9]*)\]", game_name) if app_id_regex: - app_id = app_id_regex.group(1).strip() + app_id = app_id_regex.group(1).strip().upper() else: app_id = None bids_regex = re.search( @@ -99,9 +99,9 @@ class LogFileReader(Cog): re.DOTALL, ) if bids_regex is not None and len(bids_regex.groups()) > 0: - app_id_from_bids = bids_regex.group(1).strip() + app_id_from_bids = bids_regex.group(1).strip().upper() build_ids = [ - bid.strip() + bid.strip().upper() for bid in bids_regex.group(2).splitlines() if is_build_id_valid(bid.strip()) ]