mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +00:00
[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:
parent
a6310cff1a
commit
7a7fa876d2
@ -29,11 +29,12 @@ class VkBridge extends BridgeAbstract
|
|||||||
'https://vk.com/groupname/anythingelse' => ['u' => 'groupname'],
|
'https://vk.com/groupname/anythingelse' => ['u' => 'groupname'],
|
||||||
'https://vk.com/groupname?w=somethingelse' => ['u' => 'groupname'],
|
'https://vk.com/groupname?w=somethingelse' => ['u' => 'groupname'],
|
||||||
'https://vk.com/with_underscore' => ['u' => 'with_underscore'],
|
'https://vk.com/with_underscore' => ['u' => 'with_underscore'],
|
||||||
|
'https://vk.com/vk.cats' => ['u' => 'vk.cats'],
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $pageName;
|
protected $pageName;
|
||||||
protected $tz = 0;
|
protected $tz = 0;
|
||||||
private $urlRegex = '/vk\.com\/([\w]+)/';
|
private $urlRegex = '/vk\.com\/([\w.]+)/';
|
||||||
|
|
||||||
public function getURI()
|
public function getURI()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user