Skip to content

Commit

Permalink
Remove @ from initials
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Aug 11, 2024
1 parent 82a39ed commit c2441e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/elements/ContactElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ protected function thumbUrl(int $size): ?string
*/
protected function thumbSvg(): ?string
{
$initials = mb_strtoupper(mb_substr($this->email, 0, 2));
$initials = mb_strtoupper(mb_substr(str_replace('@', '', $this->email), 0, 2));

return <<<XML
<svg version="1.1" baseProfile="full" width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
Expand Down

0 comments on commit c2441e8

Please sign in to comment.