Skip to content

Commit ae5274a

Browse files
committed
MBS-11824: Don't require space after feat. in reports
This still requires a space after full words (featuring, duet with) but not after feat. and other abbreviations, to help find and fix the not too uncommon cases where the original editor missed the space.
1 parent e945b47 commit ae5274a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/MusicBrainz/Server/Report/FeaturingRecordings.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ sub query {
1313
FROM recording r
1414
JOIN artist_credit ac ON r.artist_credit = ac.id
1515
WHERE
16-
r.name COLLATE musicbrainz ~* E' \\\\((duet with|συμμετέχει|(f|w)/|(feat|feat|ft|συμμ)(\\\\.|.)|(featuring|featuring)) '
16+
r.name COLLATE musicbrainz ~* E' \\\\(((f|w)/|(feat|feat|ft|συμμ)(\\\\.|.)|(duet with|συμμετέχει|featuring|featuring) )'
1717
";
1818
}
1919

lib/MusicBrainz/Server/Report/FeaturingReleaseGroups.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ sub query {
1515
JOIN artist_credit ac ON rg.artist_credit = ac.id
1616
JOIN release_group_meta rm ON rg.id = rm.id
1717
WHERE
18-
rg.name COLLATE musicbrainz ~* E' \\\\((duet with|συμμετέχει|(f|w)/|(feat|feat|ft|συμμ)(\\\\.|.)|(featuring|featuring)) '
18+
rg.name COLLATE musicbrainz ~* E' \\\\(((f|w)/|(feat|feat|ft|συμμ)(\\\\.|.)|(duet with|συμμετέχει|featuring|featuring) )'
1919
";
2020
}
2121

lib/MusicBrainz/Server/Report/FeaturingReleases.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ sub query {
1515
JOIN artist_credit ac ON r.artist_credit = ac.id
1616
JOIN release_meta rm ON r.id = rm.id
1717
WHERE
18-
r.name COLLATE musicbrainz ~* E' \\\\((duet with|συμμετέχει|(f|w)/|(feat|feat|ft|συμμ)(\\\\.|.)|(featuring|featuring)) '
18+
r.name COLLATE musicbrainz ~* E' \\\\(((f|w)/|(feat|feat|ft|συμμ)(\\\\.|.)|(duet with|συμμετέχει|featuring|featuring) )'
1919
";
2020
}
2121

0 commit comments

Comments
 (0)