1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-03-15 04:59:40 +01:00

[VkBridge] Using more universal regular expression to generate item title (#3627)

This commit is contained in:
Eugene Molotov 2023-08-21 07:53:54 +05:00 committed by GitHub
parent 79e3f7f204
commit 959dd937b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -453,7 +453,7 @@ class VkBridge extends BridgeAbstract
{
$content = explode('<br>', $content)[0];
$content = strip_tags($content);
preg_match('/^[:,"\w\ \p{L}\(\)\?#«»-]+/mu', htmlspecialchars_decode($content), $result);
preg_match('/.+?(?=[\.\n])/mu', htmlspecialchars_decode($content), $result);
if (count($result) == 0) {
return 'untitled';
}