Skip to content

Commit 13da427

Browse files
committed
Fix JSON Mime type regex
1 parent a719bdb commit 13da427

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/background.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
// Look for JSON if the content type is "application/json",
1010
// or "application/whatever+json" or "application/json; charset=utf-8"
11-
const jsonContentType = /^application\/(\w!#$&\.-\^\+)?json($|;)/;
11+
const jsonContentType = /^application\/([\w!#$&.\-^+]+\+)?json($|;)/;
1212

1313
// Keep track globally of URLs that contain JSON content.
1414
const jsonUrls = new Set<string>();

0 commit comments

Comments
 (0)