update example reddit filter
This commit is contained in:
parent
cc85704f3c
commit
dd8c289b8f
1 changed files with 1 additions and 1 deletions
|
@ -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"));
|
||||
|
|
Loading…
Reference in a new issue