diff --git a/netplay_index/api.py b/netplay_index/api.py index b5016d1..d089750 100644 --- a/netplay_index/api.py +++ b/netplay_index/api.py @@ -32,9 +32,7 @@ def _filter_string(sessions, key, value, match=False): for session in sessions: if match: - if re.match( - ".*" + re.escape(value) + ".*", str(session[key]), re.IGNORECASE - ): + if re.search(re.escape(value), str(session[key]), re.IGNORECASE): filtered_sessions.append(session) else: if session[key] == value: