fix(tags): 24bit Lossless being tagged as Lossless (#743)

* fix(tags): fixed `24bit Lossless` being tagged as `Lossless`

added negation to the Lossless regex to prevent it from matching 24bit Lossless

* fix(tests): modified test to reflect changes in regex
This commit is contained in:
nuxen 2023-03-07 19:50:38 +01:00 committed by GitHub
parent cec6809b34
commit 371943d144
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -220,7 +220,7 @@ func TestRelease_Parse(t *testing.T) {
ReleaseTags: "FLAC / 24bit Lossless / Log / 100% / Cue / CD",
Title: "Artist",
Group: "Albumname",
Audio: []string{"24BIT Lossless", "Cue", "FLAC", "Lossless", "Log100", "Log"},
Audio: []string{"24BIT Lossless", "Cue", "FLAC", "Log100", "Log"},
Source: "CD",
},
},