From de489b5a50db0398cb4c799d7cae01d7f46d32ce Mon Sep 17 00:00:00 2001 From: Papa Date: Sun, 19 Nov 2023 20:17:20 -0700 Subject: [PATCH] Fix some (word | artist - title) matches --- packages/runtime-website/src/music/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime-website/src/music/utils.ts b/packages/runtime-website/src/music/utils.ts index 53694d59..b463747d 100644 --- a/packages/runtime-website/src/music/utils.ts +++ b/packages/runtime-website/src/music/utils.ts @@ -20,7 +20,7 @@ const { sync, confprovider, lavalink, snow, queues, sql } = passthrough const selectTimeout = 1000 * 60 const waitForClientVCJoinTimeout = 5000 -const trackNameRegex = /\|? ?([^|[\]]+?) ?(?:[-–—|:]|\bby\b) ?([^()[\],|]+)?/ // (Toni Romiti) - (Switch Up )\(Ft. Big Rod\) | Non escaped () means cap group +const trackNameRegex = /(?:\w+ ? \| ?)?([^|[\]]+?) ?(?:[-–—|:]|\bby\b) ?([^()[\],|]+)?/ // (Toni Romiti) - (Switch Up )\(Ft. Big Rod\) | Non escaped () means cap group const knownGoodArtistRegex = /(.+?)(?:\b - Topic\b|VEVO)/ const hiddenEmbedRegex = /(^<|>$)/g const searchShortRegex = /^\w+?search:/