Fix handling of disabled_hooks regex

This commit is contained in:
Maxime Coste 2017-02-19 13:59:34 +00:00
parent 2adbbb4129
commit 9271f0a87d

View File

@ -72,7 +72,7 @@ void HookManager::run_hook(StringView hook_name,
for (auto& hook : hook_list_it->value) for (auto& hook : hook_list_it->value)
{ {
if (hook.key.empty() or disabled_hooks.empty() or if (hook.key.empty() or disabled_hooks.empty() or
regex_match(hook.key.begin(), hook.key.end(), disabled_hooks)) not regex_match(hook.key.begin(), hook.key.end(), disabled_hooks))
hooks_to_run.push_back({hook.key, hook.value}); hooks_to_run.push_back({hook.key, hook.value});
} }