Use std::regex library instead of boost one

Works equally fine for us, and allows for removing a dependency.
This commit is contained in:
TheAssassin
2018-11-28 10:59:09 +01:00
parent b7faefdc56
commit 0bc12dfd95
8 changed files with 13 additions and 28 deletions
+3 -3
View File
@@ -1,11 +1,11 @@
// system headers
#include <regex>
#include <set>
#include <string>
#include <vector>
// library headers
#include <boost/filesystem.hpp>
#include <boost/regex.hpp>
#include <fnmatch.h>
#include <subprocess.hpp>
@@ -84,9 +84,9 @@ namespace linuxdeploy {
}
// entry name must match regular expression
boost::cmatch res;
std::smatch res;
if (!boost::regex_match(i->path().filename().string().c_str(), res, PLUGIN_EXPR)) {
if (!std::regex_match(i->path().filename().string(), res, PLUGIN_EXPR)) {
ldLog() << LD_DEBUG << "Doesn't match plugin regex, skipping:" << i->path() << std::endl;
continue;
}