diff --git a/src/Manifest.php b/src/Manifest.php index 288046d..c1be2a1 100644 --- a/src/Manifest.php +++ b/src/Manifest.php @@ -42,7 +42,7 @@ public function __construct(string $path = null) */ public function getEntry(string $name): ManifestEntry { - if (! $entry = $this->entries->first(fn (ManifestEntry $entry) => Str::contains($entry->src, $name))) { + if (! $entry = $this->entries->first(fn (ManifestEntry $entry) => Str::contains($entry->src, ltrim($name, '/')))) { throw new NoSuchEntrypointException($name); }