diff --git a/src/MediaCollections/Filesystem.php b/src/MediaCollections/Filesystem.php index c2cc1ec61..9e8b908ac 100644 --- a/src/MediaCollections/Filesystem.php +++ b/src/MediaCollections/Filesystem.php @@ -242,7 +242,7 @@ public function removeResponsiveImages(Media $media, string $conversionName = 'm $responsiveImagePaths = array_filter( $allFilePaths, - fn (string $path) => Str::contains($path, $media->name) && Str::contains($path, $conversionName) + fn (string $path) => Str::contains($path, $media->name."___". $conversionName) ); $this->filesystem->disk($media->disk)->delete($responsiveImagePaths);