Skip to content

Commit e506423

Browse files
authored
Merge pull request #1305 from sinlyu/main
Make Component Search Case-Insensitive When Publishing
2 parents ab6f410 + df9d197 commit e506423

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Console/PublishCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ protected function searchOptions(string $value): array
116116

117117
return $this->fluxComponents()
118118
->keys()
119-
->filter(fn (string $component) => str($component)->lower()->startsWith($value))
119+
->filter(fn (string $component) => str($component)->lower()->startsWith(str($value)->lower()))
120120
->values()
121121
->all();
122122
}

0 commit comments

Comments
 (0)