From cad8a5ce649081abbdf923ef18d5076c683d5b40 Mon Sep 17 00:00:00 2001 From: samme Date: Wed, 7 Mar 2018 12:13:53 -0800 Subject: [PATCH] Fix Phaser.Utils.String.Format Replacements were lost. --- src/utils/string/Format.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/string/Format.js b/src/utils/string/Format.js index 8572f6c1a..38bf94ad1 100644 --- a/src/utils/string/Format.js +++ b/src/utils/string/Format.js @@ -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]; });