Skip to content

Commit

Permalink
Ensure extension is always stripped
Browse files Browse the repository at this point in the history
  • Loading branch information
Voltra committed May 20, 2024
1 parent f3b0f01 commit d1e562b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Forms/IconPicker.php
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ private function getIconName(SplFileInfo $file, string $parentPath, string $pref
$iconName = str($file->getFilenameWithoutExtension())
->after($parentPath . DIRECTORY_SEPARATOR)
->replace(DIRECTORY_SEPARATOR, '.')
->basename('.svg')
->toString();

return "$prefix-$iconName";
Expand Down

0 comments on commit d1e562b

Please sign in to comment.