Skip to content

Commit

Permalink
internal: fix polynomial runtime warning
Browse files Browse the repository at this point in the history
  • Loading branch information
snejus committed Nov 15, 2024
1 parent 4eef014 commit 4dd4b7d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions beetsplug/bandcamp/album_name.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ class AlbumName:
SERIES_FMT = re.compile(rf"^(.+){_series} *0*")
REMIX_IN_TITLE = re.compile(
r"""
(?<=remixes\ )\(.+$
| \(((inc|\+)[^()]+mix(es)?|tracks\ from[^()]+)\)
| (incl\.|with\ remixes)[^()+]+
| \W*(\+|w/)[\w\s/]*remix(ed)?$
(?<=remixes\ )\([^()]+\)$
| \((?:inc|\+)[^()]*mix(?:es)?\)
| (?:incl\.|with\ remixes)[^()+]+
| \W*(?:\+|w/)[\w\s/]*remix(?:ed)?$
| \(tracks\ from[^)]+\)
""",
re.IGNORECASE | re.VERBOSE,
)
Expand Down

0 comments on commit 4dd4b7d

Please sign in to comment.