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-24 20:32:26 -05:00
2026-03-26 12:31:03 -05:00
2026-03-26 12:31:03 -05:00
2026-03-26 12:31:03 -05:00
2026-03-17 14:23:20 +00:00
2026-03-20 23:03:27 -05:00
2026-03-23 08:41:04 +00:00
2026-03-21 15:34:27 -05:00
2026-03-21 12:19:38 -05:00
2026-03-21 13:32:02 -05:00
2026-03-21 18:44:03 -05:00
2026-03-23 08:41:04 +00:00
2026-03-21 15:03:07 -05:00
2026-03-24 10:06:06 -05:00
2026-03-23 08:41:04 +00:00
2026-03-21 10:18:41 -05:00
2026-03-21 09:33:26 -05:00
2026-03-21 08:56:41 -05:00
2026-03-21 09:07:41 +00:00
2026-03-20 23:54:36 -05:00
2026-03-22 03:37:48 +00:00
2026-03-21 18:39:29 +00:00
2026-03-16 11:00:47 -05:00
2026-03-20 08:36:35 +00:00
2026-03-19 16:23:10 +00:00
2026-03-15 10:50:13 +00:00
2026-03-19 07:17:10 +00:00
2026-03-21 22:44:45 -05:00
2026-03-16 21:24:23 -05:00
2026-03-15 10:50:13 +00:00
2026-03-15 10:50:13 +00:00
2026-03-15 10:50:13 +00:00
2026-03-21 22:44:45 -05:00
2026-03-24 20:32:26 -05:00
2026-03-15 10:50:13 +00:00
2026-03-23 07:54:38 +00:00
2026-03-19 19:55:24 -05:00
2026-03-15 10:50:13 +00:00
2026-03-22 14:06:29 -05:00
2026-03-15 10:50:13 +00:00
2026-03-15 10:50:13 +00:00
2026-03-15 10:50:13 +00:00
2026-03-17 10:49:40 +00:00
2026-03-23 07:54:38 +00:00
2026-03-15 10:50:13 +00:00
2026-03-15 10:50:13 +00:00
2026-03-15 10:50:13 +00:00
2026-03-15 10:50:13 +00:00
2026-03-20 08:45:26 +00:00
2026-03-17 10:52:10 +00:00
2026-03-16 11:00:47 -05:00
2026-03-15 10:50:13 +00:00
2026-03-15 10:50:13 +00:00
2026-03-21 15:18:54 +00:00
2026-03-15 10:50:13 +00:00
2026-03-15 10:50:13 +00:00
2026-03-23 08:59:59 +00:00
2026-03-15 10:50:13 +00:00
2026-03-23 08:36:46 +00:00
2026-03-19 18:10:31 +00:00
2026-03-17 10:49:40 +00:00
2026-03-15 10:50:13 +00:00
2026-03-24 20:32:26 -05:00
2026-03-22 18:39:15 -05:00
2026-03-17 10:49:40 +00:00
2026-03-23 08:25:08 +00:00
2026-03-15 10:50:13 +00:00
2026-03-15 10:50:13 +00:00
2026-03-17 10:49:40 +00:00
2026-03-15 10:50:13 +00:00
2026-03-16 11:00:47 -05:00
2026-03-16 21:24:23 -05:00
2026-03-15 10:50:13 +00:00
2026-03-15 10:50:13 +00:00
2026-03-15 10:50:13 +00:00
2026-03-20 23:03:27 -05:00
2026-03-15 10:50:13 +00:00
2026-03-15 10:50:13 +00:00
2026-03-23 09:43:07 +00:00
2026-03-15 10:50:13 +00:00
2026-03-15 10:50:13 +00:00
2026-03-27 08:31:08 -05:00
2026-03-15 10:50:13 +00:00
2026-03-16 19:18:37 +00:00
2026-03-22 14:07:29 -05:00
2026-03-22 14:07:29 -05:00
2026-03-16 11:00:47 -05:00
2026-03-15 10:50:13 +00:00
2026-03-16 11:00:47 -05:00
2026-03-16 21:24:23 -05:00