Skip to content

Commit

Permalink
Merge pull request #5 from SPF-Open/Fix/multiple-answer
Browse files Browse the repository at this point in the history
Fix : False positive answer with space in answer column
  • Loading branch information
Benoit-Welsch authored Dec 11, 2023
2 parents 74017a7 + 397d8d6 commit 41c88fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/helper/question.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ export class Question {
prompt: sheet[column.prompt + currentRow],
correct:
sheet[column.correct + currentRow] &&
sheet[column.correct + currentRow].h,
sheet[column.correct + currentRow].h &&
(sheet[column.correct + currentRow].h.toLowerCase().trim() === "x"),
});
}
currentRow++;
Expand Down

0 comments on commit 41c88fc

Please sign in to comment.