mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
reverted add question subject name comparison
This commit is contained in:
@@ -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())
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user