From 001abbcd66867c8bf134db5986a3f475c43daa9f Mon Sep 17 00:00:00 2001 From: Kemal Zebari Date: Sat, 30 Sep 2023 23:07:03 -0700 Subject: [PATCH] AK: Rename `URLParser:parse_host()` param is_not_special to is_opaque Since the spec renamed it to make it easier to read. --- AK/URLParser.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AK/URLParser.cpp b/AK/URLParser.cpp index 5119ec5a6f..7dfb7bddb6 100644 --- a/AK/URLParser.cpp +++ b/AK/URLParser.cpp @@ -558,7 +558,7 @@ static bool ends_in_a_number_checker(StringView input) // https://url.spec.whatwg.org/#concept-host-parser // NOTE: This is a very bare-bones implementation. -static Optional parse_host(StringView input, bool is_not_special = false) +static Optional parse_host(StringView input, bool is_opaque = false) { // 1. If input starts with U+005B ([), then: if (input.starts_with('[')) { @@ -575,8 +575,8 @@ static Optional parse_host(StringView input, bool is_not_special = fa return address.release_value(); } - // 2. If isNotSpecial is true, then return the result of opaque-host parsing input. - if (is_not_special) + // 2. If isOpaque is true, then return the result of opaque-host parsing input. + if (is_opaque) return parse_opaque_host(input); // 3. Assert: input is not the empty string.