Skip to content

Commit

Permalink
Remove unneeded basename
Browse files Browse the repository at this point in the history
  • Loading branch information
francoism90 authored Dec 11, 2023
1 parent e4b8d8b commit 334d66f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/MediaCollections/FileAdder.php
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,6 @@ public function defaultSanitizer(string $fileName): string
$extension = pathinfo($fileName, PATHINFO_EXTENSION);

$fileName = str($fileName)
->when($extension, fn (Stringable $str) => $str->basename(".{$extension}"))
->matchAll('/[\p{L}\p{N}\._]+/u')
->implode('-');

Expand Down

0 comments on commit 334d66f

Please sign in to comment.