Skip to content

Commit

Permalink
Shorten url value on details
Browse files Browse the repository at this point in the history
  • Loading branch information
zoglo committed Jun 6, 2024
1 parent 87e11d7 commit 7c05d3f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ protected function parseMemberDetails(&$arrFields, $field, $value): void
{
switch ($rgxp) {
case HttpUrlListener::RGXP_NAME:
$strReturn .= '<a href="' . $value . '" title="' . $value . '" target="blank noopener" rel="noreferer">' . $value . '</a>';
$strReturn .= '<a href="' . $value . '" title="' . $value . '" target="blank noopener" rel="noreferer">' . preg_replace('/https?:\/\/|www.|\/$/', '', $value) . '</a>';
break;

case 'phone':
Expand Down

0 comments on commit 7c05d3f

Please sign in to comment.