From 79b145acc4cb622ea13f9664aa2fa8debc7183c9 Mon Sep 17 00:00:00 2001 From: FaultyBranches Date: Tue, 2 Dec 2025 08:24:01 -0600 Subject: [PATCH] fix: Tweak in comments to better explain the original ask around rules in '25, day2 --- 25/2/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/25/2/main.py b/25/2/main.py index 7f2a0b3..54af7ca 100644 --- a/25/2/main.py +++ b/25/2/main.py @@ -24,11 +24,11 @@ def part2(range_list: list) -> int: return total def check_valid_id(id: str) -> bool: - '''Checks a given ID for validity using the silly rules''' + '''Checks a given ID for validity using the silly rules, only one repeat''' return re.fullmatch(r'(.*?)\1', id) is None def check_extended_id(id: str) -> bool: - '''Checks for extended rule checking, at least two repeats''' + '''Checks for extended rule checking, at least one repeats''' return re.fullmatch(r'(.*?)\1+', id) is None def main():