1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 22:55:55 +00:00

update example reddit filter

This commit is contained in:
Andrew Dolgov
2012-11-26 14:38:33 +04:00
parent cc85704f3c
commit dd8c289b8f

View File

@@ -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"));