info description fix
This commit is contained in:
parent
b554464802
commit
1be37161ef
@ -69,7 +69,7 @@ class InfoComponent extends preact.Component {
|
||||
const isSpec = fullInfo.spec;
|
||||
|
||||
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]());
|
||||
return <div>{reactStringReplace(infoDescription, '\n', () => <br />)}</div>;
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user