refactor: FeedItem::setTimestamp() (#3711)

This commit is contained in:
Dag 2023-09-26 00:27:45 +02:00 committed by GitHub
parent f421c45b21
commit ae53adefad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 38 additions and 15 deletions

View file

@ -54,7 +54,8 @@ class CNETFranceBridge extends FeedExpander
}
foreach ($this->bannedURL as $term) {
if (preg_match('/' . $term . '/mi', $item['uri']) === 1) {
$preg_match = preg_match('#' . $term . '#mi', $item['uri']);
if ($preg_match === 1) {
return null;
}
}