From a20209d5c86f3b19eab208edfae1c7508ecc9178 Mon Sep 17 00:00:00 2001 From: vveeps <54472340+vveeps@users.noreply.github.com> Date: Sun, 10 Oct 2021 01:03:12 +0300 Subject: [PATCH] make search prefix detection a bit stricter for good practice --- pomice/pool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pomice/pool.py b/pomice/pool.py index 9466934..ef4d635 100644 --- a/pomice/pool.py +++ b/pomice/pool.py @@ -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):