Add unittest to IXSentryClient to lua backtrace parsing code

This commit is contained in:
Benjamin Sergeant
2019-10-26 10:54:47 -07:00
parent bbfa76a2c9
commit 081dd2c4bb
5 changed files with 25 additions and 11 deletions

View File

@@ -17,7 +17,7 @@ namespace ix
SentryClient::SentryClient(const std::string& dsn)
: _dsn(dsn)
, _validDsn(false)
, _luaFrameRegex("\t([^/]+):([0-9]+): in function '([^/]+)'")
, _luaFrameRegex("\t([^/]+):([0-9]+): in function ['<]([^/]+)['>]")
{
const std::regex dsnRegex("(http[s]?)://([^:]+):([^@]+)@([^/]+)/([0-9]+)");
std::smatch group;