diff --git a/src/Models/UrlPlaceholder.php b/src/Models/UrlPlaceholder.php index 2ee7533..553fbee 100644 --- a/src/Models/UrlPlaceholder.php +++ b/src/Models/UrlPlaceholder.php @@ -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 diff --git a/src/Tags/Concerns/GetsSourceFromContext.php b/src/Tags/Concerns/GetsSourceFromContext.php index 26ccb07..6b1232c 100755 --- a/src/Tags/Concerns/GetsSourceFromContext.php +++ b/src/Tags/Concerns/GetsSourceFromContext.php @@ -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}");