Update docstring (#9340)

This commit is contained in:
John-Anthony G. Thevos 2024-03-22 15:37:20 -04:00 committed by GitHub
parent 6df509863d
commit f4194c4684
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,9 +21,7 @@ from rest_framework.settings import api_settings
def search_smart_split(search_terms):
"""generator that first splits string by spaces, leaving quoted phrases together,
then it splits non-quoted phrases by commas.
"""
"""Returns sanitized search terms as a list."""
split_terms = []
for term in smart_split(search_terms):
# trim commas to avoid bad matching for quoted phrases