From: Andrew Dolgov Date: Mon, 26 Nov 2012 10:38:33 +0000 (+0400) Subject: update example reddit filter X-Git-Tag: 1.6.2~12 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=dd8c289b8fd3733924f94c061f32f310f09fea15;p=tt-rss.git update example reddit filter --- diff --git a/classes/filter/redditimgur.php b/classes/filter/redditimgur.php index 6b41015e..b9ed2435 100644 --- a/classes/filter/redditimgur.php +++ b/classes/filter/redditimgur.php @@ -15,7 +15,7 @@ class Filter_RedditImgur { foreach ($entries as $entry) { if ($entry->hasAttribute("href")) { - if (preg_match("/i.imgur.com\/.*?.jpg/", $entry->getAttribute("href"))) { + if (preg_match("/\.(jpg|jpeg|gif|png)$/i", $entry->getAttribute("href"))) { $img = $doc->createElement('img'); $img->setAttribute("src", $entry->getAttribute("href"));