diff --git a/app/Filament/Server/Resources/FileResource/Pages/ListFiles.php b/app/Filament/Server/Resources/FileResource/Pages/ListFiles.php index 309e68754f..9769cd8c25 100644 --- a/app/Filament/Server/Resources/FileResource/Pages/ListFiles.php +++ b/app/Filament/Server/Resources/FileResource/Pages/ListFiles.php @@ -545,6 +545,7 @@ protected function getHeaderActions(): array ->form([ TextInput::make('searchTerm') ->placeholder('Enter a search term, e.g. *.txt') + ->regex('/^[^*]*\*?[^*]*$/') ->minLength(3), ]) ->action(fn ($data) => redirect(SearchFiles::getUrl([