mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 07:01:20 +00:00
Fix Phaser.Utils.String.Format
Replacements were lost.
This commit is contained in:
parent
9a21b4c7f4
commit
cad8a5ce64
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@
|
|||
*/
|
||||
var Format = function (string, values)
|
||||
{
|
||||
string.replace(/%([0-9]+)/g, function (s, n)
|
||||
string = string.replace(/%([0-9]+)/g, function (s, n)
|
||||
{
|
||||
return values[Number(n) - 1];
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue