diff --git a/docs/BOSS Metadata Syntax.html b/docs/BOSS Metadata Syntax.html index 1865316f..a3c85322 100644 --- a/docs/BOSS Metadata Syntax.html +++ b/docs/BOSS Metadata Syntax.html @@ -111,7 +111,7 @@ h3{

Please test any changes you make before uploading them. One way of doing this is to run BOSS, another is to copy/paste what you've changed into an online parser such as this one, though it won't catch condition syntax errors or non-syntax errors such as having the same file both required and incompatible. diff --git a/src/api/api.cpp b/src/api/api.cpp index e08a525d..2c1013a4 100644 --- a/src/api/api.cpp +++ b/src/api/api.cpp @@ -326,7 +326,7 @@ BOSS_API unsigned int boss_eval_lists (boss_db db, const unsigned int language) if (it->IsRegexPlugin()) { boost::regex regex; try { - regex = boost::regex(it->Name(), boost::regex::extended|boost::regex::icase); + regex = boost::regex(it->Name(), boost::regex::perl|boost::regex::icase); } catch (boost::regex_error& e) { extMessageStr = e.what(); return boss_error_regex_eval_fail; @@ -357,7 +357,7 @@ BOSS_API unsigned int boss_eval_lists (boss_db db, const unsigned int language) if (it->IsRegexPlugin()) { boost::regex regex; try { - regex = boost::regex(it->Name(), boost::regex::extended|boost::regex::icase); + regex = boost::regex(it->Name(), boost::regex::perl|boost::regex::icase); } catch (boost::regex_error& e) { extMessageStr = e.what(); return boss_error_invalid_args; diff --git a/src/backend/parsers.h b/src/backend/parsers.h index 8f23d3a8..d2d0da46 100644 --- a/src/backend/parsers.h +++ b/src/backend/parsers.h @@ -448,7 +448,7 @@ namespace boss { BOOST_LOG_TRIVIAL(trace) << "Checking to see if any files matching the regex \"" << regexStr << "\" exist."; - boost::regex sepReg("/|(\\\\)", boost::regex::extended); + boost::regex sepReg("/|(\\\\)", boost::regex::perl); std::vector components; boost::algorithm::split_regex(components, regexStr, sepReg); @@ -478,7 +478,7 @@ namespace boss { boost::regex regex; try { - regex = boost::regex(filename, boost::regex::extended|boost::regex::icase); + regex = boost::regex(filename, boost::regex::perl|boost::regex::icase); } catch (boost::regex_error& e) { BOOST_LOG_TRIVIAL(error) << "The regex string \"" << filename << "\" is invalid."; throw boss::error(boss::error::invalid_args, "The regex string \"" + filename + "\" is invalid.");