From 1267cbe2a904006f25ce627cd1feca5b6da15d87 Mon Sep 17 00:00:00 2001 From: klemek Date: Tue, 1 Mar 2022 10:53:01 +0100 Subject: [PATCH] fix traps --- main.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index 32338c1..094af2e 100644 --- a/main.js +++ b/main.js @@ -63,7 +63,8 @@ const kanas = { 'きさち', ], katakanas: [ - 'ンソシ', + 'ンソ', + 'シシ', 'ノメ', 'クケタ', 'コロヨ', @@ -238,7 +239,7 @@ let app = { similarIndexes.push(self.kanas.indexOf(utils.randitem(sameColumn))); } } - return similarIndexes.unique(); + return similarIndexes.unique().filter(i => i >= 0); }, generateQuestion: function () { const self = this;