Skip to content

Commit

Permalink
Fix calls to url helper
Browse files Browse the repository at this point in the history
  • Loading branch information
daun committed Mar 23, 2024
1 parent f58b39f commit 2ff2bbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Models/UrlPlaceholder.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function __construct(protected string $url)

public static function accepts(mixed $input): bool
{
return Str::isUrl($input, ['http', 'https']);
return Str::isUrl($input);
}

public function identifier(): string
Expand Down
2 changes: 1 addition & 1 deletion src/Tags/Concerns/GetsSourceFromContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ protected function getUrlFromContext($url = null): ?string
$url = $url->value();
}

if (Str::isUrl($url, ['http', 'https'])) {
if (Str::isUrl($url)) {
return $url;
} elseif ($url) {
throw new \Exception("Invalid URL: {$url}");
Expand Down

0 comments on commit 2ff2bbe

Please sign in to comment.