Skip to contents

Test whether a hook matches a tool name

Usage

hook_matches(hook, tool_name = NULL)

Arguments

hook

A HookMatcher.

tool_name

One tool name, or NULL. A hook without a pattern matches every name, including NULL; a pattern requires a non-NULL name.

Value

One logical value.