mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:27:35 +00:00
AK: Use new format functions.
This commit is contained in:
parent
560c52989c
commit
1d96d5eea4
13 changed files with 74 additions and 91 deletions
|
@ -306,7 +306,7 @@ URL URL::complete_url(const String& string) const
|
|||
return {};
|
||||
|
||||
if (string.starts_with("//")) {
|
||||
URL url(String::format("%s:%s", m_protocol.characters(), string.characters()));
|
||||
URL url(String::formatted("{}:{}", m_protocol, string));
|
||||
if (url.is_valid())
|
||||
return url;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue