From 7a7fa876d2a07526f0c57610b3d83c261b99e0ed Mon Sep 17 00:00:00 2001 From: wpdevelopment11 <85058595+wpdevelopment11@users.noreply.github.com> Date: Wed, 8 Nov 2023 18:40:24 +0300 Subject: [PATCH] [VkBridge] Fix regex that extracts page name (#3793) Dot should be allowed in page names. Precise rules for page names are available here: https://vk.com/faq19715 (in Russian) --- bridges/VkBridge.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bridges/VkBridge.php b/bridges/VkBridge.php index 0d47692d..60e4315b 100644 --- a/bridges/VkBridge.php +++ b/bridges/VkBridge.php @@ -29,11 +29,12 @@ class VkBridge extends BridgeAbstract 'https://vk.com/groupname/anythingelse' => ['u' => 'groupname'], 'https://vk.com/groupname?w=somethingelse' => ['u' => 'groupname'], 'https://vk.com/with_underscore' => ['u' => 'with_underscore'], + 'https://vk.com/vk.cats' => ['u' => 'vk.cats'], ]; protected $pageName; protected $tz = 0; - private $urlRegex = '/vk\.com\/([\w]+)/'; + private $urlRegex = '/vk\.com\/([\w.]+)/'; public function getURI() {