From fde12195eec7d532405844eecf29a9da9ea9612f Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Fri, 22 Dec 2017 19:06:01 +0200 Subject: [PATCH] Update file_helper.h --- include/spdlog/details/file_helper.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/spdlog/details/file_helper.h b/include/spdlog/details/file_helper.h index fc3ab038..5162e3c1 100644 --- a/include/spdlog/details/file_helper.h +++ b/include/spdlog/details/file_helper.h @@ -129,8 +129,7 @@ public: if (ext_index == filename_t::npos || ext_index == 0 || ext_index == fname.size() - 1) return std::make_tuple(fname, spdlog::filename_t()); - // treat casese like "/etc/rc.d/somelogfile or "/abc/.hiddenfile" - //auto folder_index = fname.find('\\', ext_index); + // treat casese like "/etc/rc.d/somelogfile or "/abc/.hiddenfile" auto folder_index = fname.rfind(details::os::folder_sep); if (folder_index != fname.npos && folder_index >= ext_index - 1) return std::make_tuple(fname, spdlog::filename_t());