mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-09 16:55:43 +02:00

The old code was a left-over from the times when the `capturedExpression` member was a `const char*`, which could always be indexed. With the change to use `StringRef`, blindly indexing 0th element is invalid, as it is not indexable part of a StringRef.