ParallelFileMerger: Remove old local regex and fileWaringRegex_ instead

This commit is contained in:
Markus Blatt
2018-09-05 16:42:13 +02:00
parent 5aab0dfb7b
commit 8455c0457b

View File

@@ -65,13 +65,12 @@ public:
void operator()(const fs::path& file)
{
const static boost::regex regex("[^.]+\\.(\\d+)\\.[^.]+");
boost::smatch matches;
std::string filename = file.filename().native();
if ( boost::regex_match(filename, matches, fileWarningRegex_) )
{
std::string rank = boost::regex_replace(filename, regex, "\\1");
std::string rank = boost::regex_replace(filename, fileWarningRegex_, "\\1");
if( boost::regex_match(filename, logFileRegex_) )
{