fix(regex, format): Improve regex boundary matching and remove duplicates (#36)

* tweak(regex):  Improve SM737 boundary matching

* remove(regex): Duplicate patterns created by group tiers

* tweak(group_tiers): Prevent creation of duplicate patterns

* tweak(regex): Use `THREESOME` instead of `threesome`

* tweak(regex): Rename `Colour` to `Colourisation`

* tweak(regex): Improve `Colourisation` description
This commit is contained in:
Brandon
2025-03-10 14:36:53 -04:00
committed by GitHub
parent 35aebee89f
commit b53c97a343
19 changed files with 98 additions and 166 deletions

View File

@@ -1,6 +0,0 @@
name: Blzt
pattern: (?<=^|[\s.-])Blzt\b
description: ''
tags:
- Release Group
tests: null

View File

@@ -1,72 +0,0 @@
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

View File

@@ -0,0 +1,81 @@
name: Colourisation
pattern: \bcolou?r(i[sz]ed?|ed)?\b
description: 'Colourisation (or colorization in American English) is the process of
adding colour to black-and-white, sepia, or other monochrome images. Matches variations
of `color` in both American and British spellings, including:
- **Base forms:** `color`, `colour`
- **Past tense/adjective forms:** `colored`, `coloured`
- **Verb forms:** `colorize`, `colourize`, `colorise`, `colourise`
- **Past participles:** `colorized`, `coloured`, `colourized`, `colourised`'
tags:
- Colour Grade
- Enhancement
tests:
- expected: true
id: 1
input: colour
lastRun: '2025-02-22T19:10:06.067266'
matchSpan:
end: 6
start: 0
matchedContent: colour
matchedGroups:
- null
passes: true
- expected: true
id: 3
input: coloured
lastRun: '2025-02-22T19:10:06.067266'
matchSpan:
end: 8
start: 0
matchedContent: coloured
matchedGroups:
- ed
passes: true
- expected: true
id: 4
input: colourise
lastRun: '2025-02-22T19:10:06.067266'
matchSpan:
end: 9
start: 0
matchedContent: colourise
matchedGroups:
- ise
passes: true
- expected: true
id: 7
input: colourised
lastRun: '2025-02-22T19:10:06.067266'
matchSpan:
end: 10
start: 0
matchedContent: colourised
matchedGroups:
- ised
passes: true
- expected: true
id: 8
input: colored
lastRun: '2025-02-22T19:10:06.067266'
matchSpan:
end: 7
start: 0
matchedContent: colored
matchedGroups:
- ed
passes: true
- expected: false
id: 9
input: discolor
lastRun: '2025-02-22T19:10:06.067266'
matchSpan: null
matchedContent: null
matchedGroups: []
passes: true

View File

@@ -1,5 +1,5 @@
name: SM737
pattern: SM737
pattern: (?<=^|[\s.-])SM737\b
description: ''
tags:
- Release Group

View File

@@ -3,4 +3,4 @@ pattern: (?<=^|[\s.-])THREESOME\b
description: ''
tags:
- Release Group
tests: null
tests: []

View File

@@ -3,4 +3,4 @@ pattern: (?<=^|[\s.-])WhiteRhino\b
description: ''
tags:
- Release Group
tests: null
tests: []

View File

@@ -1,6 +0,0 @@
name: aviator
pattern: (?<=^|[\s.-])aviator\b
description: ''
tags:
- Release Group
tests: null

View File

@@ -1,6 +0,0 @@
name: c0ke
pattern: (?<=^|[\s.-])c0ke\b
description: ''
tags:
- Release Group
tests: []

View File

@@ -1,6 +0,0 @@
name: guhzer
pattern: (?<=^|[\s.-])guhzer\b
description: ''
tags:
- Release Group
tests: null

View File

@@ -1,6 +0,0 @@
name: invandraren
pattern: (?<=^|[\s.-])invandraren\b
description: ''
tags:
- Release Group
tests: null

View File

@@ -1,6 +0,0 @@
name: spectacle
pattern: (?<=^|[\s.-])spectacle\b
description: ''
tags:
- Release Group
tests: null

View File

@@ -1,6 +0,0 @@
name: threesome
pattern: (?<=^|[\s.-])threesome\b
description: ''
tags:
- Release Group
tests: null

View File

@@ -1,6 +0,0 @@
name: whiterhino
pattern: (?<=^|[\s.-])whiterhino\b
description: ''
tags:
- Release Group
tests: null