mirror of
https://github.com/catchorg/Catch2.git
synced 2025-03-29 05:44:46 +01: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.