mirror of
https://github.com/catchorg/Catch2.git
synced 2025-11-09 16:29:32 +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.