diff options
Diffstat (limited to 'src/log.hpp')
-rw-r--r-- | src/log.hpp | 2 |
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()); |