[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)
This commit is contained in:
wpdevelopment11 2023-11-08 18:40:24 +03:00 committed by GitHub
parent a6310cff1a
commit 7a7fa876d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()
{