Files
Steve Faulkner 07b4fb4c70 fix: anchor has/missing condition value regex for full-string matching (#696)
Config rule has/missing conditions used unanchored regex matching,
so a condition like has:[cookie:role=admin] would match cookie values
containing 'admin' as a substring (e.g. 'not-admin', 'admin-temp').

Anchor the regex with ^ and $ to match the full value, matching
Next.js behavior (prepare-destination.ts uses new RegExp(`^${value}$`)).

Adds tests verifying exact match, substring rejection, superstring
rejection, and regex pattern compatibility with anchoring.
2026-03-27 08:31:08 -05:00
..
2026-03-15 10:50:13 +00:00