From 813d2cec270191dbeffac831347e7e0a84f708cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brian=20=C3=93=20Donnell?= Date: Wed, 30 Dec 2015 12:49:22 -0500 Subject: [PATCH] Fixed regex bug introduced in previous commit --- pod_feeder.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pod_feeder.pl b/pod_feeder.pl index 870ee59..cc54e8c 100755 --- a/pod_feeder.pl +++ b/pod_feeder.pl @@ -290,7 +290,7 @@ sub get_feed_items { # extract image link and hover text from content:encoded if it exists if( defined $item->{'content:encoded'} ){ - $item->{'content:encoded'} =~ /img .* src=\\?'(https?:\/\/[^']+)/ unless $item->{'content:encoded'} =~ /img .* src=\\?"(https?:\/\/[^"]+)/; + $item->{'content:encoded'} =~ /img .* ?src=\\?'(https?:\/\/[^']+)/ unless $item->{'content:encoded'} =~ /img .* ?src=\\?"(https?:\/\/[^"]+)/; if( defined $1 ){ $image = $1; @@ -301,7 +301,7 @@ sub get_feed_items { # extract image link and hover text from description if it exists if( not length $image and defined $item->{'description'} ){ - $item->{'description'} =~ /img .* src='(https?:\/\/[^']+)/ unless $item->{'description'} =~ /img .* src="(https?:\/\/[^"]+)/; + $item->{'description'} =~ /img .* ?src='(https?:\/\/[^']+)/ unless $item->{'description'} =~ /img .* ?src="(https?:\/\/[^"]+)/; if( defined $1 ){ $image = $1;