(self, search_query)
return search_query
Add backslash escapes to any "magic" characters in a query.
Add backslash escapes to any "magic" characters in a query.
Add backslash escapes to any magic characters in a query .
def _escape_magic(self, search_query):
        """Add backslash escapes to any "magic" characters in a query."""
        for char in r"\^$.*[~/":
            search_query = search_query.replace(char, "\\" + char)
        return search_query
def _escape_magic ( self , search_query ) : for char in r"\^$.*[~/" : search_query = search_query . replace ( char , "\\" + char ) return search_query