summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/log.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/log.hpp b/src/log.hpp
index 286cd07..4d709b4 100644
--- a/src/log.hpp
+++ b/src/log.hpp
@@ -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());