Skip to content

Commit

Permalink
An empty link won't be saved
Browse files Browse the repository at this point in the history
  • Loading branch information
jonassiewertsen committed Jun 16, 2021
1 parent a847d6e commit 18c54c3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ExternalLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ public static function title()
*/
public function process($data)
{
if (! $data) {
return;
}

return 'https://' . $data;
}

Expand Down

0 comments on commit 18c54c3

Please sign in to comment.