1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-25 19:01:18 +02:00

[VkBridge] Fix one letter bug on titles (#1555)

This commit is contained in:
Eugene Molotov
2020-05-17 23:21:37 +05:00
committed by GitHub
parent f4affe1833
commit 868d3f600d

View File

@@ -355,7 +355,7 @@ class VkBridge extends BridgeAbstract
private function getTitle($content)
{
preg_match('/^["\w\ \p{Cyrillic}\(\)\?#«»-]+/mu', htmlspecialchars_decode($content), $result);
preg_match('/^["\w\ \p{L}\(\)\?#«»-]+/mu', htmlspecialchars_decode($content), $result);
if (count($result) == 0) return 'untitled';
return $result[0];
}