mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-01-17 22:28:22 +01: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)
|
||||
{
|
||||
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];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user