mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-07 23:33:51 +00:00
The problem was that every line would iterate from current line start position to the end of the string, looking for a newline to break on, leading to accidentally quadratic runtime. With this change, the code only ever searches up to the current line's length and not more. Credit to @jorgenpt for the fix suggestion. Closes #2315