forked from Supositware/Haha-Yes
Minor style change
This commit is contained in:
parent
2cc13e8328
commit
39ff404deb
2 changed files with 4 additions and 2 deletions
|
@ -65,7 +65,9 @@ export function rand(text, interaction) {
|
||||||
const matches = text.matchAll(/\[.*?\]\s?/g);
|
const matches = text.matchAll(/\[.*?\]\s?/g);
|
||||||
|
|
||||||
for (const match of matches) {
|
for (const match of matches) {
|
||||||
if (search(match[0].trim(), variables)) { text = text.replace(match[0].trim(), search(match[0].trim(), variables).value); }
|
if (search(match[0].trim(), variables)) {
|
||||||
|
text = text.replace(match[0].trim(), search(match[0].trim(), variables).value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return text;
|
return text;
|
||||||
|
|
Loading…
Reference in a new issue