diff --git a/src/index.js b/src/index.js index 1a76aa8..e266847 100644 --- a/src/index.js +++ b/src/index.js @@ -270,6 +270,8 @@ exports.handler = function (event, context, callback) { // Remove HTML tags from string function removeTags(str) { + if (!str) // some iCal properties may not exist + return str; return str.replace(/<(?:.|\n)*?>/gm, ''); }