Skip to content

Commit 0c0006d

Browse files
committed
fix(if_match): fix to parse list-based fields syntax
1 parent cb89860 commit 0c0006d

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

deno.lock

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

if_match_test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ describe("parse", () => {
4444
tag: "*",
4545
weak: false,
4646
}]],
47+
48+
[`","`, [{ tag: ",", weak: false }]],
4749
];
4850

4951
table.forEach(([input, expected]) => {
@@ -57,7 +59,6 @@ describe("parse", () => {
5759
"* a",
5860
"*,",
5961
`*, ""`,
60-
`","`,
6162
`* *`,
6263
`**`,
6364
`"", *`,

preconditions/utils_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ describe("ifNoneMatch", () => {
7171
[`"a", "b", "c"`, `"d"`],
7272
[`W/"a", "b", "c"`, `"d"`],
7373
[`W/"a", "b", "c"`, `W/"d"`],
74+
[`"abc,def"`, `""`],
7475
];
7576

7677
table.forEach(([filedValue, etag]) => {
@@ -83,7 +84,6 @@ describe("ifNoneMatch", () => {
8384
["", ""],
8485
[`""`, `"`],
8586
[`"`, `""`],
86-
[`"abc,def"`, `""`],
8787
];
8888

8989
table.forEach(([filedValue, etag]) => {

0 commit comments

Comments
 (0)