Enhancements

Add validation of exclude/include values passed from URI argument.
Update pref.ini.
This commit is contained in:
Tindy X committed 2019-12-03 22:00:00 +08:00
1 parent 4057d7e216
commit 6079487fde
4 files changed
+20 -3

No files matched your search

+13
View File
@@ -438,6 +438,19 @@ std::string replace_all_distinct(std::string str, std::string old_value, std::st
return str;
}
bool regValid(std::string &reg)
{
try
{
std::regex r(reg);
return true;
}
catch (std::regex_error &e)
{
return false;
}
}
bool regFind(std::string src, std::string target)
{
try