mirror of
https://github.com/catchorg/Catch2
synced 2026-02-14 01:12:11 +00: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.