diff --git a/custom_formats/B&W.yml b/custom_formats/B&W.yml index 644ed3c..7ccc82f 100644 --- a/custom_formats/B&W.yml +++ b/custom_formats/B&W.yml @@ -1,5 +1,5 @@ name: B&W -description: Matches the 'B&W' Regex Pattern +description: Matches the 'B&W' and 'Colour' Regex Pattern tags: - Unwanted - Colour Grade @@ -10,4 +10,27 @@ conditions: pattern: B&W required: true 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 diff --git a/regex_patterns/Colour.yml b/regex_patterns/Colour.yml new file mode 100644 index 0000000..e63e733 --- /dev/null +++ b/regex_patterns/Colour.yml @@ -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