Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'unexpected-arrays'

Closes #65
  • Loading branch information...
commit 06fe3856e16de5220f28a68b6aeaf0068dcc5edb 2 parents e229eae + 10dd366
@danmactough authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 main.js
View
4 main.js
@@ -434,7 +434,7 @@ FeedParser.prototype.handleMeta = function handleMeta (node, type, options) {
case('modified'):
case('updated'):
case('dc:date'):
- var date = utils.get(el) ? new Date(el['#']) : null;
+ var date = utils.get(el) ? new Date(utils.get(el)) : null;
if (!date) break;
if (meta.pubdate === null || name == 'pubdate' || name == 'published')
meta.pubdate = meta.pubDate = date;
@@ -731,7 +731,7 @@ FeedParser.prototype.handleItem = function handleItem (node, type, options){
case('modified'):
case('updated'):
case('dc:date'):
- var date = utils.get(el) ? new Date(el['#']) : null;
+ var date = utils.get(el) ? new Date(utils.get(el)) : null;
if (!date) break;
if (item.pubdate === null || name == 'pubdate' || name == 'published' || name == 'issued')
item.pubdate = item.pubDate = date;
Please sign in to comment.
Something went wrong with that request. Please try again.