Skip to content

Commit 703f510

Browse files
committed
add .strip()
1 parent 81b1f5d commit 703f510

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/search/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def list(self, request, *args, **kwargs):
165165
time = timezone.now()
166166

167167
query = self.request.query_params.get('q', '')
168-
query = query.lower()
168+
query = query.lower().strip()
169169

170170
# record the search query with a celery task
171171
tasks.record_search_query.delay(

0 commit comments

Comments
 (0)