Skip to content

Commit 99adccb

Browse files
authored
Update quiz.ts
1 parent d6926a7 commit 99adccb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kirafan/quiz.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ export default (slackClients: SlackInterface): void => {
441441
}
442442
}
443443

444-
if (message.text.match(/^ (easy|[]3)$/)) {
444+
if (message.text.match(/^\s?(easy|[]3)$/)) {
445445
const randomKirafanCard = sample((await getKirafanCards()).filter(card => card.rare === 2));
446446
const problem = await generateProblem(randomKirafanCard);
447447
const quiz = new KirafanAteQuiz(slackClients, problem, postOptionEasy);

0 commit comments

Comments
 (0)