tidy up info strings

This commit is contained in:
Mashy
2019-08-14 13:28:02 +10:00
parent 8a74d9e3c4
commit fbf0eead04
2 changed files with 33 additions and 39 deletions
+2 -6
View File
@@ -26,9 +26,7 @@ function InfoComponent(args) {
if (isSkill) {
const regEx = /(RedPower|BluePower|GreenPower|RedLife|BlueLife|GreenLife|SpeedStat)/;
const infoDescription = reactStringReplace(fullInfo.description, regEx, match => {
return shapes[match]();
});
const infoDescription = reactStringReplace(fullInfo.description, regEx, match => shapes[match]());
return (
<div class="info-skill">
@@ -110,9 +108,7 @@ function InfoComponent(args) {
);
});
const regEx = /(RedPower|BluePower|GreenPower|RedLife|BlueLife|GreenLife|SpeedStat)/;
const infoDescription = reactStringReplace(fullInfo.description, regEx, match => {
return shapes[match]();
});
const infoDescription = reactStringReplace(fullInfo.description, regEx, match => shapes[match]());
return (
<div class="info-spec">