From b4ea2856f3cea9b4c218ad82c65482aefd69eba3 Mon Sep 17 00:00:00 2001 From: Phan An Date: Mon, 5 Feb 2024 23:27:47 +0100 Subject: [PATCH] fix(plus): incorrect regex for storage metadata matching --- app/Models/Song.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/Song.php b/app/Models/Song.php index 70c3f085..71a9134a 100644 --- a/app/Models/Song.php +++ b/app/Models/Song.php @@ -167,11 +167,11 @@ class Song extends Model try { switch ($this->storage) { case 's3': - preg_match('/^s3\\+:\\/\\/(.*)\\/(.*)/', $this->path, $matches); + preg_match('/^s3:\\/\\/(.*)\\/(.*)/', $this->path, $matches); return S3CompatibleMetadata::make($matches[1], $matches[2]); case 's3-legacy': - preg_match('/^s3\\+:\\/\\/(.*)\\/(.*)/', $this->path, $matches); + preg_match('/^s3:\\/\\/(.*)\\/(.*)/', $this->path, $matches); return LegacyS3Metadata::make($matches[1], $matches[2]); case 'dropbox':