elm.web.utilities.clean_search_query
- clean_search_query(query)[source]
Check if the first character is a digit and remove it if so.
Some search tools (e.g., Google) will fail to return results if the query has a leading digit: 1. “LangCh…”
This function will take all the text after the first double quote (”) if a digit is detected at the beginning of the string.
- Parameters:
query (str) – Input query that may or may not contain a leading digit.
- Returns:
str – Cleaned query.