mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-02 01:33:04 +00:00
Enhancements
Add validation of exclude/include values passed from URI argument. Update pref.ini.
This commit is contained in:
4 files changed
+20
-3
No files matched your search
@@ -438,6 +438,19 @@ std::string replace_all_distinct(std::string str, std::string old_value, std::st
|
||||
return str;
|
||||
}
|
||||
|
||||
bool regValid(std::string ®)
|
||||
{
|
||||
try
|
||||
{
|
||||
std::regex r(reg);
|
||||
return true;
|
||||
}
|
||||
catch (std::regex_error &e)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
bool regFind(std::string src, std::string target)
|
||||
{
|
||||
try
|
||||
|
||||
Reference in new issue
Block a user