Skip to content

Commit

Permalink
[VkBridge] Fix one letter bug on titles (RSS-Bridge#1555)
Browse files Browse the repository at this point in the history
  • Loading branch information
em92 authored and comlaterra committed Sep 25, 2020
1 parent f5a9a01 commit 3eb9e61
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 3eb9e61

Please sign in to comment.