Merge pull request #55 from thegunslingers/master

ICal Parser Fix
This commit is contained in:
Michael Teeuw 2016-01-25 11:14:31 +01:00
commit a201ef4e53

View File

@ -108,6 +108,10 @@ function ical_parser(feed_url, callback){
type = ln.substr(0,idx).replace(/^\s\s*/, '').replace(/\s\s*$/, '');//Trim
val = ln.substr(idx+1).replace(/^\s\s*/, '').replace(/\s\s*$/, '');
if(typeof cur_event[type] !== 'undefined'){
continue;
}
//If the type is a start date, proccess it and store details
if(type =='DTSTART'){
dt = this.makeDate(val);