Skip to content

Commit

Permalink
Allow underscore
Browse files Browse the repository at this point in the history
  • Loading branch information
francoism90 authored Dec 11, 2023
1 parent e38af8d commit 70f143b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MediaCollections/FileAdder.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ public function defaultSanitizer(string $fileName): string

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

return str($fileName)
Expand Down

0 comments on commit 70f143b

Please sign in to comment.