String.format
depends on the order of passed values, resulting in unwanted replacements.
#89604
Labels
Milestone
Tested versions
Reproducible in 4.2.1.stable and v4.3.dev.custom_build [fe01776] (freshly synced and built
master
)System information
Godot v4.3.dev (fe01776) - Windows 10.0.19045 - Vulkan (Mobile) - dedicated NVIDIA GeForce RTX 3060 (NVIDIA; 31.0.15.5123) - AMD Ryzen 7 5800X 8-Core Processor (8 Threads)
Issue description
If you have a "template" string
"{first}{second}"
, the result of.format()
ting it will depend on the order of values passed in. Specifically, if the passed value for{first}
is a string that contains literal"{second}"
, that literal will get replaced with the value of{second}
if the value for{first}
was passed before the value for{second}
.Steps to reproduce
Create a new project and assign the following script to the main scene.
Minimal reproduction project (MRP)
N/A
The text was updated successfully, but these errors were encountered: