mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
LibJS: Use string::formatted() in to_string() functions
This commit is contained in:
parent
bc701658f8
commit
2e2571743b
Notes:
sideshowbarker
2024-07-19 02:03:58 +09:00
Author: https://github.com/linusg
Commit: 2e2571743b
Pull-request: https://github.com/SerenityOS/serenity/pull/3681
8 changed files with 11 additions and 12 deletions
|
@ -51,7 +51,7 @@ RegExpObject::~RegExpObject()
|
|||
|
||||
Value RegExpObject::to_string() const
|
||||
{
|
||||
return js_string(heap(), String::format("/%s/%s", content().characters(), flags().characters()));
|
||||
return js_string(heap(), String::formatted("/{}/{}", content(), flags()));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue