Skip to content

Function: approvalMatches()

approvalMatches(gate, urls): boolean

Resolve an approval gate against a set of candidate URLs into a concrete boolean: "none" / "always" pass straight through; a "urls" policy gates when ANY candidate matches. Empty candidates with a pattern gate never match (nothing to approve). Reuses the allow-list matcher so approval globs read exactly like allow-list globs.

ApprovalGate | ApprovalPolicy

readonly string[]

boolean