Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

Commit

Permalink
Fix default tag name for snake_case components
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVanderbist committed Dec 14, 2019
1 parent 6886ad2 commit 3f65fa9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Component.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ protected function determineDefaultTag(): string

$tag = Str::kebab(end($baseComponentName));

if (Str::contains($tag, '_')) {
$tag = str_replace('_', '-', $tag);
}
$tag = str_replace('_', '-', $tag);

if (Str::contains($this->view, '::') && ! Str::contains($tag, '::')) {
$namespace = Str::before($this->view, '::');
Expand Down

0 comments on commit 3f65fa9

Please sign in to comment.