mirror of
https://github.com/Dictionarry-Hub/database.git
synced 2025-12-18 11:47:04 +00:00
tweak(format): Improve matching for Black & White colour grade (#34)
- Improve b&w matching to include various spellings / delimiters - Enforce year look ahead to make sure black & white is not included in title - Negate any colorized releases that were originally black and white
This commit is contained in:
72
regex_patterns/Colour.yml
Normal file
72
regex_patterns/Colour.yml
Normal file
@@ -0,0 +1,72 @@
|
||||
name: Colour
|
||||
pattern: \bcolou?r(i[sz]ed?|ed)?\b
|
||||
description: '- Matches `colour`, `coloured`, `colourize`, `colourized`.
|
||||
|
||||
- Handles both American ("color") and British ("colour") spellings.'
|
||||
tags:
|
||||
- Colour Grade
|
||||
- Enhancement
|
||||
tests:
|
||||
- expected: true
|
||||
id: 1
|
||||
input: colour
|
||||
lastRun: '2025-02-13T13:29:13.301346'
|
||||
matchSpan:
|
||||
end: 6
|
||||
start: 0
|
||||
matchedContent: colour
|
||||
matchedGroups:
|
||||
- null
|
||||
passes: true
|
||||
- expected: true
|
||||
id: 3
|
||||
input: coloured
|
||||
lastRun: '2025-02-13T13:29:13.301346'
|
||||
matchSpan:
|
||||
end: 8
|
||||
start: 0
|
||||
matchedContent: coloured
|
||||
matchedGroups:
|
||||
- ed
|
||||
passes: true
|
||||
- expected: true
|
||||
id: 4
|
||||
input: colourize
|
||||
lastRun: '2025-02-13T13:29:13.301346'
|
||||
matchSpan:
|
||||
end: 9
|
||||
start: 0
|
||||
matchedContent: colourize
|
||||
matchedGroups:
|
||||
- ize
|
||||
passes: true
|
||||
- expected: true
|
||||
id: 7
|
||||
input: colourized
|
||||
lastRun: '2025-02-13T13:29:13.301346'
|
||||
matchSpan:
|
||||
end: 10
|
||||
start: 0
|
||||
matchedContent: colourized
|
||||
matchedGroups:
|
||||
- ized
|
||||
passes: true
|
||||
- expected: true
|
||||
id: 8
|
||||
input: colored
|
||||
lastRun: '2025-02-13T13:29:13.301346'
|
||||
matchSpan:
|
||||
end: 7
|
||||
start: 0
|
||||
matchedContent: colored
|
||||
matchedGroups:
|
||||
- ed
|
||||
passes: true
|
||||
- expected: false
|
||||
id: 9
|
||||
input: discolor
|
||||
lastRun: '2025-02-13T13:29:13.301346'
|
||||
matchSpan: null
|
||||
matchedContent: null
|
||||
matchedGroups: []
|
||||
passes: true
|
||||
Reference in New Issue
Block a user