mirror of
https://github.com/chaoticbackup/chaoticbackup.github.io.git
synced 2026-03-22 01:34:20 -05:00
fixed legendary, modified element regex
This commit is contained in:
parent
8e1731b1df
commit
d4a50fc999
File diff suppressed because one or more lines are too long
|
|
@ -45,7 +45,7 @@ export function Unique(props) {
|
|||
}
|
||||
}
|
||||
if (props.data.legendary) {
|
||||
string+="Legendary";
|
||||
string = (string) ? ("Legendary, " + string) : "Legendary";
|
||||
}
|
||||
string = string.replace(/,\s+$/, "");
|
||||
return (
|
||||
|
|
@ -97,9 +97,9 @@ export function Ability(props) {
|
|||
}
|
||||
|
||||
const elements = {
|
||||
regex: /(fire)|(air)|(earth)|(water)/i,
|
||||
regex: new RegExp(/(\b((fire)|(air)|(earth)|(water)))/i),
|
||||
fn: (key, result) => {
|
||||
return (<span key={key}><Element element={result[0]} value="true" size="icon14"/>{result[0]}</span>);
|
||||
return (<span key={key}><Element element={result[0].replace(/\b/, '')} value="true" size="icon14"/>{result[0]}</span>);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
animation: love .5s infinite linear alternate-reverse;
|
||||
}
|
||||
|
||||
a {
|
||||
.with-love a {
|
||||
text-decoration: none;
|
||||
border-bottom: 1px dotted;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user