mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +00:00
[VkBridge] Fix one letter bug on titles (#1555)
This commit is contained in:
parent
f4affe1833
commit
868d3f600d
@ -355,7 +355,7 @@ class VkBridge extends BridgeAbstract
|
|||||||
|
|
||||||
private function getTitle($content)
|
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';
|
if (count($result) == 0) return 'untitled';
|
||||||
return $result[0];
|
return $result[0];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user