Skip to content

Commit 24a9fbb

Browse files
committed
refactor: simplify main soundtrack regex pattern
1 parent 4acbfb7 commit 24a9fbb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

harmonizer/release_types.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ const releaseGroupTypeMatchers: Array<{ type?: ReleaseGroupType; pattern: RegExp
2121
// Common soundtrack title: "Official/Original <Medium> Soundtrack" and "Original Score"
2222
{
2323
type: 'Soundtrack',
24-
pattern:
25-
/(?:Original|Official)\s(?:(?:(?:Video\s)?Game|Motion Picture|Film|Movie|Television|TV|(?:(?:TV|Television)[\s-]?)?(?:Mini[\s-]?)?Series?|Musical)[\s-])?(?:Soundtrack|Score)/i,
24+
pattern: /(?:Original|Official)(?:.*?)(?:Soundtrack|Score)/i,
2625
},
2726
// Common soundtrack title: "Soundtrack from the <Medium>", should also match "Soundtrack from the <Streaming service> <Medium>"
2827
{

0 commit comments

Comments
 (0)