1
0
forked from 0ad/0ad

Add support to escape dots (.) by using double dots (..) for aura keys. Fixes #2945 (I think)

This was SVN commit r16010.
This commit is contained in:
sanderd17 2014-11-26 19:59:08 +00:00
parent 1430efa9d6
commit 89cc0fd0e1

View File

@ -78,7 +78,7 @@ Auras.prototype.Init = function()
for (var value in this.template[name].Modifications)
{
var mod = {};
mod.value = value.replace(/\./g, "/");
mod.value = value.replace(/\./g, "/").replace(/\/\//g, ".");
if (this.template[name].Modifications[value].Add)
mod.add = +this.template[name].Modifications[value].Add;
else if (this.template[name].Modifications[value].Multiply)