Fixed regex match bug

This commit is contained in:
Brian O'Donnell
2015-07-05 16:39:10 -04:00
parent c6a17531e1
commit 5ccecd72d1
+1 -1
View File
@@ -282,7 +282,7 @@ sub get_feed_items {
# extract image link and hover text if it exists
if( defined $item->{'description'} ){
if( $item->{'description'} =~ / src="(https?:\/\/[^"]+)/ ){
$image = $2 if defined $2;
$image = $1 if defined $1;
if( $item->{'description'} =~ / title="([^"]+)/ ){
$image_title = $1 if defined $1;
}