diff --git a/src/search.cpp b/src/search.cpp index 1a9c5c8..84eba40 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -60,7 +60,7 @@ std::vector search(const fs::path &filepath, std::string_view regex, flags |= boost::regex::icase; } - boost::regex re(regex.data(), flags); + const boost::regex re(regex.data(), flags); std::vector matches; for (const auto &entry : zip::list(filepath)) {