convert underscores to spaces in stat names returned from the server

This commit is contained in:
Jon Atkins
2013-06-08 19:17:21 +01:00
parent 51be5bee04
commit 4073e56856

View File

@ -42,7 +42,7 @@ window.getModDetails = function(d) {
title += '\nStats:';
for (var key in mod.stats) {
if (!mod.stats.hasOwnProperty(key)) continue;
title += '\n+' + mod.stats[key] + ' ' + key.capitalize();
title += '\n+' + mod.stats[key] + ' ' + key.capitalize().replace(/_/g,' ');
}
mods.push(mod.rarity.capitalize().replace('_', ' ') + ' ' + mod.displayName);