Did not read standard correctly

This commit is contained in:
FutureRave 2022-01-30 18:52:55 +00:00
parent 43696dd6fb
commit 7601985f32
No known key found for this signature in database
GPG Key ID: E883E2BC9657D955

View File

@ -335,12 +335,12 @@ namespace Components
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
{
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);
return;