Skip to content

Commit

Permalink
Fix some (word | artist - title) matches
Browse files Browse the repository at this point in the history
  • Loading branch information
PapiOphidian committed Nov 20, 2023
1 parent 20d730e commit de489b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-website/src/music/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:/
Expand Down

0 comments on commit de489b5

Please sign in to comment.