Skip to content

Commit

Permalink
remove unused helper method emailize
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcage committed Sep 21, 2022
1 parent af31d61 commit be8cd23
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions app/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,6 @@ function split_by_whitespace(string $value): array
}
}

if (! function_exists('emailize')) {
function emailize(string $text): string
{
$regex = '/([a-zA-Z0-9_\-\.]*@\S+\.\w+)/';
$replace = '<a href="mailto:$1">$1</a>';

return preg_replace($regex, $replace, $text);
}
}

if (! function_exists('whatsapp_link')) {
function whatsapp_link(string $value, ?string $text = null): string
{
Expand Down

0 comments on commit be8cd23

Please sign in to comment.