update EXPECT_THROW_RE() to accept the pattern as a string_view
Summary: Previously the `EXPECT_THROW_RE()` macro required the regular expression be passed in as a `const char*`. This updates the code to accept a `std::string_view` instead. This allows the API to accept either `const char*` arguments, `std::string`, or `std::string_view` objects. Reviewed By: yfeldblum Differential Revision: D25837542 fbshipit-source-id: e6fb00034046ad7f2810367f946f0135858ed065
Showing
Please register or sign in to comment