Skip to content

Commit

Permalink
Delete unnecessary comma in feat detection regex
Browse files Browse the repository at this point in the history
  • Loading branch information
klb2 committed Sep 23, 2024
1 parent 6c8bd42 commit 3942753
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beets/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ def feat_tokens(for_artist=True):
feat_words = ["ft", "featuring", "feat", "feat.", "ft."]
if for_artist:
feat_words += ["with", "vs", "and", "con", "&"]
return r"(?<=[\s,(,\[])(?:{})(?=\s)".format(
return r"(?<=[\s(\[])(?:{})(?=\s)".format(
"|".join(re.escape(x) for x in feat_words)
)

Expand Down

0 comments on commit 3942753

Please sign in to comment.