info description fix

This commit is contained in:
Mashy 2019-10-31 15:34:05 +10:00
parent b554464802
commit 1be37161ef

View File

@ -69,7 +69,7 @@ class InfoComponent extends preact.Component {
const isSpec = fullInfo.spec; const isSpec = fullInfo.spec;
const itemDescription = () => { const itemDescription = () => {
const regEx = /(RedPower|BluePower|GreenPower|RedLife|BlueLife|GreenLife|SpeedStat)/; const regEx = /(RedPower|BluePower|GreenPower|RedLife|BlueLife|GreenLife|SpeedStat|LIFE|SPEED|POWER)/;
const infoDescription = reactStringReplace(fullInfo.description, regEx, m => shapes[m]()); const infoDescription = reactStringReplace(fullInfo.description, regEx, m => shapes[m]());
return <div>{reactStringReplace(infoDescription, '\n', () => <br />)}</div>; return <div>{reactStringReplace(infoDescription, '\n', () => <br />)}</div>;
}; };