From d8b9a1eb7b7ee565ab85ee930e440e7ba57a26da Mon Sep 17 00:00:00 2001 From: Marcos Casagrande Date: Mon, 10 Oct 2022 13:30:04 +0200 Subject: [PATCH] fix(ext/mimesniff): fix parseMimeType --- ext/web/01_mimesniff.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ext/web/01_mimesniff.js b/ext/web/01_mimesniff.js index d2c784d6eb66da..ca9356a36ec595 100644 --- a/ext/web/01_mimesniff.js +++ b/ext/web/01_mimesniff.js @@ -141,7 +141,12 @@ position = res.position; // 11.8.2. - position++; + const res2 = collectSequenceOfCodepoints( + input, + position, + (c) => c !== "\u003B", + ); + position = res2.position; } else { // 11.9. // 11.9.1. const res = collectSequenceOfCodepoints(