Negate if title is noted to be in colour
This commit is contained in:
parent
462d24af7c
commit
10d18b377f
|
|
@ -1,5 +1,5 @@
|
||||||
name: B&W
|
name: B&W
|
||||||
description: Matches the 'B&W' Regex Pattern
|
description: Matches the 'B&W' and 'Colour' Regex Pattern
|
||||||
tags:
|
tags:
|
||||||
- Unwanted
|
- Unwanted
|
||||||
- Colour Grade
|
- Colour Grade
|
||||||
|
|
@ -10,4 +10,27 @@ conditions:
|
||||||
pattern: B&W
|
pattern: B&W
|
||||||
required: true
|
required: true
|
||||||
type: release_title
|
type: release_title
|
||||||
tests: []
|
- name: Colour
|
||||||
|
negate: true
|
||||||
|
pattern: Colour
|
||||||
|
required: true
|
||||||
|
type: release_title
|
||||||
|
tests:
|
||||||
|
- conditionResults:
|
||||||
|
- matches: true
|
||||||
|
name: B&W
|
||||||
|
negate: false
|
||||||
|
pattern: B&W
|
||||||
|
required: true
|
||||||
|
type: release_title
|
||||||
|
- matches: true
|
||||||
|
name: Colour
|
||||||
|
negate: true
|
||||||
|
pattern: Colour
|
||||||
|
required: true
|
||||||
|
type: release_title
|
||||||
|
expected: false
|
||||||
|
id: 1
|
||||||
|
input: Dracula (1931) B&W (Colourized Version)
|
||||||
|
lastRun: '2025-02-13T13:14:54.830866'
|
||||||
|
passes: true
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,72 @@
|
||||||
|
name: Colour
|
||||||
|
pattern: \bcolou?r(ized?|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
|
||||||
Loading…
Reference in New Issue