Avoid normalizing empty fields (#645)

remotes/origin/node-11-x
Esther Lozano 5 years ago committed by GitHub
parent 419adea234
commit 0a68b48acc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -45,6 +45,10 @@ function getEventData (req, res) {
}
function normalizedField (field) {
if (!field) {
return undefined;
}
return field.toString().trim().substr(0, MAX_LENGTH);
}

Loading…
Cancel
Save