Skip to content

Commit

Permalink
Make search str required and nonempty, non-whitespace-only in search …
Browse files Browse the repository at this point in the history
…submission

Through the frontend. Backend already taken care of this
by generating the corresponding errors
  • Loading branch information
candleindark committed Mar 25, 2024
1 parent 8c7b160 commit 3f751a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datalad_registry/templates/overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<div class="content">
<form action="{{ url_for('.overview') }}" method="get">
<label for='search' class="sr-only">Search</label>
<input id='search' type='search' name='query'
<input id='search' type='search' name='query' required pattern=".*\S.*"
{%- if search_query %} value="{{ search_query|escape }}"
{%- endif -%}
placeholder='Search query'
Expand Down

0 comments on commit 3f751a4

Please sign in to comment.