mirror of
https://github.com/wolfpld/tracy
synced 2026-01-19 04:52:09 +00:00
relax regex match in symbolication substitution
See discussion https://github.com/wolfpld/tracy/issues/1075
This commit is contained in:
@@ -15,7 +15,7 @@ bool ApplyPathSubstitutions( std::string& path, const PathSubstitutionList& path
|
||||
{
|
||||
for( const auto& substitution : pathSubstitutionlist )
|
||||
{
|
||||
if( std::regex_match(path, substitution.first) )
|
||||
if( std::regex_search(path, substitution.first) )
|
||||
{
|
||||
path = std::regex_replace( path, substitution.first, substitution.second );
|
||||
return true;
|
||||
@@ -168,4 +168,4 @@ void PatchSymbols( tracy::Worker& worker, const std::vector<std::string>& pathSu
|
||||
{
|
||||
std::cerr << "Failed to patch symbols" << std::endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user