Skip to content

Commit

Permalink
Only allow one * (#797)
Browse files Browse the repository at this point in the history
  • Loading branch information
RMartinOscar authored Dec 8, 2024
1 parent 8358e41 commit 9716b1e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down

0 comments on commit 9716b1e

Please sign in to comment.