From 9271f0a87d0e772f9aa2647367ddfba9dfffd72b Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 19 Feb 2017 13:59:34 +0000 Subject: [PATCH] Fix handling of disabled_hooks regex --- src/hook_manager.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hook_manager.cc b/src/hook_manager.cc index 6c336af2..ba3f2782 100644 --- a/src/hook_manager.cc +++ b/src/hook_manager.cc @@ -72,7 +72,7 @@ void HookManager::run_hook(StringView hook_name, for (auto& hook : hook_list_it->value) { 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}); }