From 3eb9e61df6e248056c590efbc9a9e94bcf3203a7 Mon Sep 17 00:00:00 2001 From: Eugene Molotov Date: Sun, 17 May 2020 23:21:37 +0500 Subject: [PATCH] [VkBridge] Fix one letter bug on titles (#1555) --- bridges/VkBridge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridges/VkBridge.php b/bridges/VkBridge.php index ea81a2b210e..2e03790b2bd 100644 --- a/bridges/VkBridge.php +++ b/bridges/VkBridge.php @@ -355,7 +355,7 @@ private function getPhoto($a) { 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]; }