Did not read standard correctly
This commit is contained in:
parent
43696dd6fb
commit
7601985f32
@ -335,12 +335,12 @@ namespace Components
|
|||||||
|
|
||||||
void Maps::AddDependency(const std::string& expression, const std::string& zone)
|
void Maps::AddDependency(const std::string& expression, const std::string& zone)
|
||||||
{
|
{
|
||||||
// Test expression before adding it, throws implementation defined exceptions
|
// Test expression before adding it
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
std::regex _(expression);
|
std::regex _(expression);
|
||||||
}
|
}
|
||||||
catch (const std::exception ex)
|
catch (const std::regex_error ex)
|
||||||
{
|
{
|
||||||
MessageBoxA(nullptr, Utils::String::VA("Invalid regular expression: %s", expression.data()), "Warning", MB_ICONEXCLAMATION);
|
MessageBoxA(nullptr, Utils::String::VA("Invalid regular expression: %s", expression.data()), "Warning", MB_ICONEXCLAMATION);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user