mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 07:01:20 +00:00
Remove extra assignment
This commit is contained in:
parent
cad8a5ce64
commit
b625cc1ff6
1 changed files with 1 additions and 3 deletions
|
@ -20,12 +20,10 @@
|
||||||
*/
|
*/
|
||||||
var Format = function (string, values)
|
var Format = function (string, values)
|
||||||
{
|
{
|
||||||
string = string.replace(/%([0-9]+)/g, function (s, n)
|
return string.replace(/%([0-9]+)/g, function (s, n)
|
||||||
{
|
{
|
||||||
return values[Number(n) - 1];
|
return values[Number(n) - 1];
|
||||||
});
|
});
|
||||||
|
|
||||||
return string;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = Format;
|
module.exports = Format;
|
||||||
|
|
Loading…
Reference in a new issue