From 7601985f32000a5707065fb09db0c8e427cf0cbd Mon Sep 17 00:00:00 2001 From: FutureRave Date: Sun, 30 Jan 2022 18:52:55 +0000 Subject: [PATCH] Did not read standard correctly --- src/Components/Modules/Maps.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/Modules/Maps.cpp b/src/Components/Modules/Maps.cpp index 897d344e..2667ad7d 100644 --- a/src/Components/Modules/Maps.cpp +++ b/src/Components/Modules/Maps.cpp @@ -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;