summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/MimeSniff
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2023-02-28 11:11:39 +0000
committerSam Atkins <atkinssj@gmail.com>2023-02-28 12:55:10 +0000
commitc06f4ac6f58261c079721b54058989d7695ef9c3 (patch)
tree0416efe327f8b9be6b8b2ba4abf1d283335a3ac2 /Userland/Libraries/LibWeb/MimeSniff
parent0511059d604d7544a4af4e8ebd990c755fd1cff2 (diff)
downloadserenity-c06f4ac6f58261c079721b54058989d7695ef9c3.zip
AK+Everywhere: Make GenericLexer::ignore_until() stop before the value
`consume_until(foo)` stops before foo, and so does `ignore_until(Predicate)`, so let's make the other `ignore_until()` overloads consistent with that so they're less confusing.
Diffstat (limited to 'Userland/Libraries/LibWeb/MimeSniff')
-rw-r--r--Userland/Libraries/LibWeb/MimeSniff/MimeType.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/Userland/Libraries/LibWeb/MimeSniff/MimeType.cpp b/Userland/Libraries/LibWeb/MimeSniff/MimeType.cpp
index b138a6e412..3b4a3ae1ca 100644
--- a/Userland/Libraries/LibWeb/MimeSniff/MimeType.cpp
+++ b/Userland/Libraries/LibWeb/MimeSniff/MimeType.cpp
@@ -139,10 +139,7 @@ Optional<MimeType> MimeType::from_string(StringView string)
parameter_value = Fetch::Infrastructure::collect_an_http_quoted_string(lexer, Fetch::Infrastructure::HttpQuotedStringExtractValue::Yes);
// 2. Collect a sequence of code points that are not U+003B (;) from input, given position.
- // NOTE: This uses the predicate version as the ignore_until(char) version will also ignore the ';'.
- lexer.ignore_until([](char ch) {
- return ch == ';';
- });
+ lexer.ignore_until(';');
}
// 9. Otherwise: