Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Commit

Permalink
Update regex accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
Herant committed Nov 5, 2021
1 parent 63bbb80 commit fe8f32d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function renderAnchorHtmlTagAttributes(Item $item)
*/
protected function getAnchorTagAttributes(Item $item): array
{
$itemUrl = preg_replace('/&p=(.*?.)/', '', $this->getItemUrl($item));
$itemUrl = preg_replace('/&p=\d+/', '', $this->getItemUrl($item));
if ($this->filterHelper->shouldFilterBeIndexable($item)) {
return ['href' => $itemUrl];
}
Expand Down

0 comments on commit fe8f32d

Please sign in to comment.