mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-03-14 20:21:14 +03:00
[VkBridge] Revert more universal regex for title generation (#3736)
In practice it lead to feed items to have "untitled". Using previous regex with more covered cases. Credits to https://t.me/votkot as author of regex
This commit is contained in:
parent
b6a9baff94
commit
145bd10f4c
1 changed files with 1 additions and 1 deletions
|
@ -453,7 +453,7 @@ class VkBridge extends BridgeAbstract
|
|||
{
|
||||
$content = explode('<br>', $content)[0];
|
||||
$content = strip_tags($content);
|
||||
preg_match('/.+?(?=[\.\n])/mu', htmlspecialchars_decode($content), $result);
|
||||
preg_match('/^[:\,"\w\ \p{L}\(\)\?#«»\-\–\—||&\.%\\₽\/+\;\!]+/mu', htmlspecialchars_decode($content), $result);
|
||||
if (count($result) == 0) {
|
||||
return 'untitled';
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue