From 959dd937b4b5c6bc9f37c659652900986c123f69 Mon Sep 17 00:00:00 2001 From: Eugene Molotov Date: Mon, 21 Aug 2023 07:53:54 +0500 Subject: [PATCH] [VkBridge] Using more universal regular expression to generate item title (#3627) --- bridges/VkBridge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridges/VkBridge.php b/bridges/VkBridge.php index 8c18f26a..90b2586e 100644 --- a/bridges/VkBridge.php +++ b/bridges/VkBridge.php @@ -453,7 +453,7 @@ class VkBridge extends BridgeAbstract { $content = explode('
', $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'; }