From 13d41322dabca2a6f8b4ec727accdb90a2d43d05 Mon Sep 17 00:00:00 2001 From: evgdema Date: Fri, 5 Apr 2019 12:06:05 +0200 Subject: [PATCH] add additional validation for the curr.uid add additional validation for the curr.uid if the type of "curr.uid" would be an object then the keys of resulted object after the parsing would looks like "[object Object]" in case of "UID;VALUE=TEXT:c13f7d21-...." at the end of the parsing we would have only the last date --- ical.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ical.js b/ical.js index 024625b..4e303c0 100755 --- a/ical.js +++ b/ical.js @@ -283,7 +283,7 @@ var par = stack.pop() - if (curr.uid) + if (curr.uid && typeof curr.uid === 'string') { // If this is the first time we run into this UID, just save it. if (par[curr.uid] === undefined)