Fix handling of disabled_hooks regex
This commit is contained in:
parent
2adbbb4129
commit
9271f0a87d
|
@ -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});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user