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():