Skip to content

Commit

Permalink
[VkBridge] Fix one letter bug on titles (#1555)
Browse files Browse the repository at this point in the history
  • Loading branch information
em92 authored May 17, 2020
1 parent f4affe1 commit 868d3f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bridges/VkBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ private function getPhoto($a) {

private function getTitle($content)
{
preg_match('/^["\w\ \p{Cyrillic}\(\)\?#«»-]+/mu', htmlspecialchars_decode($content), $result);
preg_match('/^["\w\ \p{L}\(\)\?#«»-]+/mu', htmlspecialchars_decode($content), $result);
if (count($result) == 0) return 'untitled';
return $result[0];
}
Expand Down

0 comments on commit 868d3f6

Please sign in to comment.