Fix Phaser.Utils.String.Format

Replacements were lost.
This commit is contained in:
samme 2018-03-07 12:13:53 -08:00
parent 9a21b4c7f4
commit cad8a5ce64

View file

@ -20,7 +20,7 @@
*/ */
var Format = function (string, values) 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]; return values[Number(n) - 1];
}); });