From a80816d86c58c307e73e610cefa7a2c01163cef5 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 04:03:04 +0000 Subject: [PATCH] Cover comma-separated If-Match value parsing Co-authored-by: Theo Browne --- apps/t3/src/cli.test.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/t3/src/cli.test.ts b/apps/t3/src/cli.test.ts index 273296a081..f2b06c88e3 100644 --- a/apps/t3/src/cli.test.ts +++ b/apps/t3/src/cli.test.ts @@ -992,6 +992,11 @@ describe("ifMatchSatisfied", () => { expect(ifMatchSatisfied("\"abc\"", "\"abc\"")).toBe(true); }); + it("supports comma-separated header values", () => { + expect(ifMatchSatisfied("\"foo\", \"abc\"", "\"abc\"")).toBe(true); + expect(ifMatchSatisfied("\"foo\", *", "\"abc\"")).toBe(true); + }); + it("rejects weak validators and mismatches", () => { expect(ifMatchSatisfied("W/\"abc\"", "\"abc\"")).toBe(false); expect(ifMatchSatisfied("\"xyz\"", "\"abc\"")).toBe(false);