Skip to content

Commit

Permalink
Check guidIsPermaLink explicitly against undefined to allow 'false' a…
Browse files Browse the repository at this point in the history
…s a value
  • Loading branch information
neopostmodern committed Mar 19, 2019
1 parent e93b705 commit 3ebb7ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rss2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default (ins: Feed) => {
* GUID isPermaLink
* https://validator.w3.org/feed/docs/error/InvalidHttpGUID.html
*/
if (entry.guidIsPermaLink) {
if (entry.guidIsPermaLink !== undefined) {
guidItem.guid.push({ _attr: { isPermaLink: entry.guidIsPermaLink } });
}
item.push(guidItem);
Expand Down

0 comments on commit 3ebb7ca

Please sign in to comment.