make search prefix detection a bit stricter for good practice
This commit is contained in:
parent
e0f38e50f8
commit
a20209d5c8
|
|
@ -269,7 +269,7 @@ class Node:
|
||||||
Context object on any track you search.
|
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}"
|
query = f"{search_type}:{query}"
|
||||||
|
|
||||||
if spotify_url_check := SPOTIFY_URL_REGEX.match(query):
|
if spotify_url_check := SPOTIFY_URL_REGEX.match(query):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue