Commit b3965f5c authored by Josef Hoppe's avatar Josef Hoppe

fix bug in third person question

replace all occurences of {playername} in third person questions
parent 02e3b465
......@@ -339,6 +339,6 @@ function shuffle(a: any[]) {
export function selectQuestionText(question: Question, thirdPerson: boolean, playerName: string) {
var questionString = (thirdPerson ? question.questionThirdPerson : undefined) ?? question.question;
questionString = questionString.replace("{playerName}", playerName);
questionString = questionString.replace(/{playerName}/g, playerName);
return questionString;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment