mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-10 08:58:50 +00:00
Co-authored-by: tougaj <tougaj@users.noreply.github.com>
This commit is contained in:
parent
0dc6c66840
commit
ce353c1e4f
@ -114,7 +114,7 @@ class CssSelectorBridge extends BridgeAbstract
|
|||||||
{
|
{
|
||||||
if (!empty($url_pattern)) {
|
if (!empty($url_pattern)) {
|
||||||
$url_pattern = '/' . str_replace('/', '\/', $url_pattern) . '/';
|
$url_pattern = '/' . str_replace('/', '\/', $url_pattern) . '/';
|
||||||
$links = array_filter($links, function ($url) {
|
$links = array_filter($links, function ($url) use ($url_pattern) {
|
||||||
return preg_match($url_pattern, $url) === 1;
|
return preg_match($url_pattern, $url) === 1;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user