mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Skipping answer simplification if value is undefined
This commit is contained in:
@@ -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,
|
||||||
|
Reference in New Issue
Block a user