Skipping answer simplification if value is undefined

This commit is contained in:
mrfry 2020-11-09 18:27:51 +01:00
parent a880d67eae
commit bd6bf2de62

View file

@ -146,6 +146,9 @@ function simplifyQA(value, mods) {
} }
function simplifyAnswer(value) { function simplifyAnswer(value) {
if (!value) {
return value
}
return simplifyQA(value, [ return simplifyQA(value, [
removeSpecialChars, removeSpecialChars,
removeUnnecesarySpaces, removeUnnecesarySpaces,