make search prefix detection a bit stricter for good practice

This commit is contained in:
vveeps 2021-10-10 01:03:12 +03:00
parent e0f38e50f8
commit a20209d5c8
1 changed files with 1 additions and 1 deletions

View File

@ -269,7 +269,7 @@ class Node:
Context object on any track you search.
"""
if not URL_REGEX.match(query) and not re.match(r"(?:ytm?|sc)search:", query):
if not URL_REGEX.match(query) and not re.match(r"(?:ytm?|sc)search:.", query):
query = f"{search_type}:{query}"
if spotify_url_check := SPOTIFY_URL_REGEX.match(query):