No question fix

This commit is contained in:
MrFry 2019-12-27 09:20:04 +01:00
parent dc3e8f5391
commit 8210d49d28
2 changed files with 4 additions and 4 deletions

@ -1 +1 @@
Subproject commit 0cfd9cfda377ff8917df50e68f105ec43f5e9311
Subproject commit 100ca7750d88400b227c9e1592300c4d1ea7db5c

View file

@ -1203,13 +1203,13 @@
var imgNodes = q.imgnodes
// ------------------------------------------------------------------------------------------------------
var answers = []
for (var j = 0; j < questions.length; j++) {
var question = SUtils.RemoveUnnecesarySpaces(questions[j]) // simplifying question
questions.forEach((x, j) => {
let question = SUtils.EmptyOrWhiteSpace(x) ? '' : SUtils.RemoveUnnecesarySpaces(x) // simplifying question
var result = data.Search(question, SimplifyImages(imgNodes))
var r = PrepareAnswers(result, j)
if (r !== undefined) { answers.push(r) }
HighLightAnswer(result, j) // highlights the answer for the current result
}
})
ShowAnswers(answers, q.q)
}