Search for all directories in shorten_filename().
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
27054d480e
commit
935c84e001
@ -31,7 +31,7 @@ constexpr auto shorten_filename(const string_view &filename)
|
||||
{
|
||||
for (const string_view &dir : {"/src/", "/include/"})
|
||||
{
|
||||
auto pos{filename.rfind("/src/")};
|
||||
const auto pos{filename.rfind(dir)};
|
||||
if (pos != string_view::npos)
|
||||
{
|
||||
return filename.substr(pos + dir.size());
|
||||
|
Loading…
x
Reference in New Issue
Block a user