reverted add question subject name comparison

This commit is contained in:
mrfry 2023-03-08 07:49:06 +01:00
parent 85408029b5
commit e1747b9b11

View file

@ -500,8 +500,10 @@ function addQuestion(
const i = data.findIndex((subject) => { const i = data.findIndex((subject) => {
return ( return (
subj.toLowerCase() === subject.Name &&
getSubjNameWithoutYear(subject.Name).toLowerCase() subj
.toLowerCase()
.includes(getSubjNameWithoutYear(subject.Name).toLowerCase())
) )
}) })