Skip to content

The readInput utility function corrupts the first line of input if it starts with whitespace #42

@strauss

Description

@strauss

In today's puzzle (AoC 2025 Day 6) the helper function "readInput" from the utilities corrupted the puzzle input for part 2 by removing the trailing whitespace of the first line. That character was actually pretty significant for the solution.

My suggestion would be removing the trim call in this function. At least that's what I did to fix it.

EDIT: Nice, I got issue number 42 :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions