Skip to content

Commit

Permalink
[VkBridge] Fix regex that extracts page name (RSS-Bridge#3793)
Browse files Browse the repository at this point in the history
Dot should be allowed in page names.
Precise rules for page names are available here:
https://vk.com/faq19715 (in Russian)
  • Loading branch information
wpdevelopment11 authored Nov 8, 2023
1 parent a6310cf commit 7a7fa87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bridges/VkBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down

0 comments on commit 7a7fa87

Please sign in to comment.