Simplified B&W regex
This commit is contained in:
parent
67a0c880e3
commit
1f673ec437
|
|
@ -1,6 +1,10 @@
|
||||||
name: B&W
|
name: B&W
|
||||||
pattern: (?:\(\d{4}\)|\d{4})\s*[\w\s.,-]*\s*(?:\bblack\b[\s.]*(?:and|\&|-|\/)[\s.]*\bwhite\b|\bb\&w\b|\bb\s*[\/\-]?\s*w\b|\bb\b[\s.]*(?:and|\&|-|\/)[\s.]*\bw\b)
|
pattern: (?:\(\d{4}\)|\d{4}).*?(?:\bblack\b[\s\&.\-\/]*(?:and)?[\s\&.\-\/]*\bwhite\b|\bb\&?w\b)
|
||||||
description: Black and White colour grading.
|
description: Black and White colour grading. This regex matches a 4-digit number (optionally
|
||||||
|
surrounded by parentheses), followed by any amount of text, and then detects references
|
||||||
|
to "black and white" in various formats. It supports `blackwhite` (no spaces), `black
|
||||||
|
and white`, `black-white`, "`black & white`, `black/white`, as well as shorthand
|
||||||
|
`BW` and `B&W`, while excluding invalid variations like `b w`, `b-w`, or `b/w`
|
||||||
tags:
|
tags:
|
||||||
- Enhancement
|
- Enhancement
|
||||||
- Unwanted
|
- Unwanted
|
||||||
|
|
@ -10,7 +14,7 @@ tests:
|
||||||
id: 1
|
id: 1
|
||||||
input: The Mist Black and White 2007 2160p USA UHD Blu-ray DV HDR HEVC TrueHD 7.1
|
input: The Mist Black and White 2007 2160p USA UHD Blu-ray DV HDR HEVC TrueHD 7.1
|
||||||
Atmos-BeyondHD
|
Atmos-BeyondHD
|
||||||
lastRun: '2025-02-13T13:15:39.155364'
|
lastRun: '2025-02-14T14:41:22.957835'
|
||||||
matchSpan: null
|
matchSpan: null
|
||||||
matchedContent: null
|
matchedContent: null
|
||||||
matchedGroups: []
|
matchedGroups: []
|
||||||
|
|
@ -18,7 +22,7 @@ tests:
|
||||||
- expected: false
|
- expected: false
|
||||||
id: 2
|
id: 2
|
||||||
input: Black and White 2002 1080p Blu-ray AVC DTS-HD MA 5.1-CultFilms
|
input: Black and White 2002 1080p Blu-ray AVC DTS-HD MA 5.1-CultFilms
|
||||||
lastRun: '2025-02-13T13:15:39.155364'
|
lastRun: '2025-02-14T14:41:22.957835'
|
||||||
matchSpan: null
|
matchSpan: null
|
||||||
matchedContent: null
|
matchedContent: null
|
||||||
matchedGroups: []
|
matchedGroups: []
|
||||||
|
|
@ -27,7 +31,7 @@ tests:
|
||||||
id: 3
|
id: 3
|
||||||
input: 'Pokemon the Movie: Black and White-Victini and Reshiram Zekrom 2011 1080p
|
input: 'Pokemon the Movie: Black and White-Victini and Reshiram Zekrom 2011 1080p
|
||||||
AUS BD50 DTS-HD MA 5.1 AVC-PHOENiX'
|
AUS BD50 DTS-HD MA 5.1 AVC-PHOENiX'
|
||||||
lastRun: '2025-02-13T13:15:39.155364'
|
lastRun: '2025-02-14T14:41:22.957835'
|
||||||
matchSpan: null
|
matchSpan: null
|
||||||
matchedContent: null
|
matchedContent: null
|
||||||
matchedGroups: []
|
matchedGroups: []
|
||||||
|
|
@ -35,7 +39,7 @@ tests:
|
||||||
- expected: true
|
- expected: true
|
||||||
id: 4
|
id: 4
|
||||||
input: Madeo 2009 Black & White Version 1080p JPN Blu-ray AVC TrueHD 5.1-kyRLS
|
input: Madeo 2009 Black & White Version 1080p JPN Blu-ray AVC TrueHD 5.1-kyRLS
|
||||||
lastRun: '2025-02-13T13:15:39.155364'
|
lastRun: '2025-02-14T14:41:22.957835'
|
||||||
matchSpan:
|
matchSpan:
|
||||||
end: 24
|
end: 24
|
||||||
start: 6
|
start: 6
|
||||||
|
|
@ -45,7 +49,7 @@ tests:
|
||||||
- expected: true
|
- expected: true
|
||||||
id: 6
|
id: 6
|
||||||
input: Psycho (1960) B&W
|
input: Psycho (1960) B&W
|
||||||
lastRun: '2025-02-13T13:15:39.155364'
|
lastRun: '2025-02-14T14:41:22.957835'
|
||||||
matchSpan:
|
matchSpan:
|
||||||
end: 17
|
end: 17
|
||||||
start: 7
|
start: 7
|
||||||
|
|
@ -55,7 +59,7 @@ tests:
|
||||||
- expected: true
|
- expected: true
|
||||||
id: 7
|
id: 7
|
||||||
input: Citizen Kane (1941) Black.and.White
|
input: Citizen Kane (1941) Black.and.White
|
||||||
lastRun: '2025-02-13T13:15:39.155364'
|
lastRun: '2025-02-14T14:41:22.957835'
|
||||||
matchSpan:
|
matchSpan:
|
||||||
end: 35
|
end: 35
|
||||||
start: 13
|
start: 13
|
||||||
|
|
@ -65,7 +69,7 @@ tests:
|
||||||
- expected: true
|
- expected: true
|
||||||
id: 8
|
id: 8
|
||||||
input: Dracula (1931) Black-White
|
input: Dracula (1931) Black-White
|
||||||
lastRun: '2025-02-13T13:15:39.155364'
|
lastRun: '2025-02-14T14:41:22.957835'
|
||||||
matchSpan:
|
matchSpan:
|
||||||
end: 26
|
end: 26
|
||||||
start: 8
|
start: 8
|
||||||
|
|
@ -75,7 +79,7 @@ tests:
|
||||||
- expected: true
|
- expected: true
|
||||||
id: 11
|
id: 11
|
||||||
input: Young Frankenstein (1974) BW DVDRip
|
input: Young Frankenstein (1974) BW DVDRip
|
||||||
lastRun: '2025-02-13T13:15:39.155364'
|
lastRun: '2025-02-14T14:41:22.957835'
|
||||||
matchSpan:
|
matchSpan:
|
||||||
end: 28
|
end: 28
|
||||||
start: 19
|
start: 19
|
||||||
|
|
@ -84,8 +88,8 @@ tests:
|
||||||
passes: true
|
passes: true
|
||||||
- expected: false
|
- expected: false
|
||||||
id: 12
|
id: 12
|
||||||
input: Title (2007) Jack Black & Betty White
|
input: Jack Black & Betty White in a Comedy Special
|
||||||
lastRun: '2025-02-13T13:15:39.155364'
|
lastRun: '2025-02-14T14:41:22.957835'
|
||||||
matchSpan: null
|
matchSpan: null
|
||||||
matchedContent: null
|
matchedContent: null
|
||||||
matchedGroups: []
|
matchedGroups: []
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue