mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
Everywhere: Remove sv
suffix from format string literals
This prevents the compile-time checks that would catch errors in the format invocation (which would usually lead to a runtime crash).
This commit is contained in:
parent
917537b449
commit
f070264800
Notes:
github-actions[bot]
2025-04-09 00:01:12 +00:00
Author: https://github.com/trflynn89
Commit: f070264800
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4286
28 changed files with 51 additions and 51 deletions
|
@ -27,7 +27,7 @@ PatternErrorOr<String> canonicalize_a_protocol(String const& value)
|
|||
// 2. Let parseResult be the result of running the basic URL parser given value followed by "://dummy.invalid/".
|
||||
// NOTE: Note, state override is not used here because it enforces restrictions that are only appropriate for the
|
||||
// protocol setter. Instead we use the protocol to parse a dummy URL using the normal parsing entry point.
|
||||
auto parse_result = Parser::basic_parse(MUST(String::formatted("{}://dummy.invalid"sv, value)));
|
||||
auto parse_result = Parser::basic_parse(MUST(String::formatted("{}://dummy.invalid", value)));
|
||||
|
||||
// 4. If parseResult is failure, then throw a TypeError.
|
||||
if (!parse_result.has_value())
|
||||
|
|
|
@ -216,7 +216,7 @@ PatternErrorOr<Init> process_a_url_pattern_init(Init const& init, PatternProcess
|
|||
|
||||
// 2. If baseURL is failure, then throw a TypeError.
|
||||
if (!base_url.has_value())
|
||||
return ErrorInfo { MUST(String::formatted("Invalid base URL '{}' provided for URLPattern"sv, init.base_url.value())) };
|
||||
return ErrorInfo { MUST(String::formatted("Invalid base URL '{}' provided for URLPattern", init.base_url.value())) };
|
||||
|
||||
// 3. If init["protocol"] does not exist, then set result["protocol"] to the result of processing a base URL
|
||||
// string given baseURL’s scheme and type.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue