summaryrefslogtreecommitdiff
path: root/lib/feed2imap
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/feed2imap/html2text-parser.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/feed2imap/html2text-parser.rb b/lib/feed2imap/html2text-parser.rb
index a6bf400..51bebfe 100644
--- a/lib/feed2imap/html2text-parser.rb
+++ b/lib/feed2imap/html2text-parser.rb
@@ -62,7 +62,9 @@ class HTML2TextParser < SGMLParser
@href = a[1]
end
end
- @links << @href.gsub(/^("|'|)(.*)("|')$/,'\2')
+ if @href
+ @links << @href.gsub(/^("|'|)(.*)("|')$/,'\2')
+ end
end
end