Finalized the Level Generation

This commit is contained in:
Tiago Ribeiro
2024-07-26 14:09:08 +01:00
parent 6a803fe137
commit 8f6639b7fc
4 changed files with 318 additions and 434 deletions

View File

@@ -18,8 +18,6 @@ function Question({
const renderPrompt = (prompt: string) => {
return reactStringReplace(prompt, /((<u>)\w+(<\/u>))/g, (match) => {
const word = match.replaceAll("<u>", "").replaceAll("</u>", "");
console.log(word);
return word.length > 0 ? <u>{word}</u> : null;
});
};