diff --git a/Libraries/LibURL/Pattern/Pattern.cpp b/Libraries/LibURL/Pattern/Pattern.cpp index a987e8e582c..2d6efe95db0 100644 --- a/Libraries/LibURL/Pattern/Pattern.cpp +++ b/Libraries/LibURL/Pattern/Pattern.cpp @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include #include namespace URL::Pattern { @@ -16,7 +17,8 @@ PatternErrorOr Pattern::create(Input const& input, Optional con // 2. If input is a scalar value string then: if (input.has()) { - // FIXME: 1. Set init to the result of running parse a constructor string given input. + // 1. Set init to the result of running parse a constructor string given input. + init = TRY(ConstructorStringParser::parse(input.get().code_points())); // 2. If baseURL is null and init["protocol"] does not exist, then throw a TypeError. if (!base_url.has_value() && !init.protocol.has_value())