mirror of
https://github.com/Dictionarry-Hub/database.git
synced 2025-12-11 00:07:01 +00:00
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:
@@ -12,13 +12,13 @@ conditions:
|
||||
resolution: 1080p
|
||||
type: resolution
|
||||
- name: Not WEB-DL
|
||||
type: source
|
||||
required: true
|
||||
negate: true
|
||||
required: true
|
||||
source: web_dl
|
||||
- name: c0ke
|
||||
type: source
|
||||
- name: c0kE
|
||||
negate: false
|
||||
pattern: c0ke
|
||||
pattern: c0kE
|
||||
required: false
|
||||
type: release_group
|
||||
- name: CtrlHD
|
||||
|
||||
@@ -82,7 +82,7 @@ conditions:
|
||||
type: release_group
|
||||
- name: whiterhino
|
||||
negate: false
|
||||
pattern: whiterhino
|
||||
pattern: WhiteRhino
|
||||
required: false
|
||||
type: release_group
|
||||
- name: ReaLHD
|
||||
@@ -135,11 +135,6 @@ conditions:
|
||||
pattern: SPECTACLE
|
||||
required: false
|
||||
type: release_group
|
||||
- name: spectacle
|
||||
negate: false
|
||||
pattern: spectacle
|
||||
required: false
|
||||
type: release_group
|
||||
- name: HD77
|
||||
negate: false
|
||||
pattern: HD77
|
||||
@@ -215,11 +210,6 @@ conditions:
|
||||
pattern: AAAUHD
|
||||
required: false
|
||||
type: release_group
|
||||
- name: guhzer
|
||||
negate: false
|
||||
pattern: guhzer
|
||||
required: false
|
||||
type: release_group
|
||||
- name: GUHZER
|
||||
negate: false
|
||||
pattern: GUHZER
|
||||
|
||||
@@ -25,16 +25,6 @@ conditions:
|
||||
pattern: BOREDOR
|
||||
required: false
|
||||
type: release_group
|
||||
- name: threesome
|
||||
negate: false
|
||||
pattern: threesome
|
||||
required: false
|
||||
type: release_group
|
||||
- name: Blzt
|
||||
negate: false
|
||||
pattern: Blzt
|
||||
required: false
|
||||
type: release_group
|
||||
- name: LittleBakas
|
||||
negate: false
|
||||
pattern: LittleBakas
|
||||
@@ -75,11 +65,6 @@ conditions:
|
||||
pattern: UHDCLUBREMUX
|
||||
required: false
|
||||
type: release_group
|
||||
- name: invandraren
|
||||
negate: false
|
||||
pattern: invandraren
|
||||
required: false
|
||||
type: release_group
|
||||
- name: dkore
|
||||
negate: false
|
||||
pattern: dkore
|
||||
@@ -90,4 +75,9 @@ conditions:
|
||||
pattern: Lucifer
|
||||
required: false
|
||||
type: release_group
|
||||
- name: THREESOME
|
||||
type: release_group
|
||||
required: false
|
||||
negate: false
|
||||
pattern: THREESOME
|
||||
tests: []
|
||||
|
||||
@@ -12,7 +12,7 @@ conditions:
|
||||
type: release_title
|
||||
- name: Colour
|
||||
negate: true
|
||||
pattern: Colour
|
||||
pattern: Colourisation
|
||||
required: true
|
||||
type: release_title
|
||||
tests:
|
||||
|
||||
@@ -13,7 +13,7 @@ conditions:
|
||||
type: source
|
||||
- name: TBB
|
||||
negate: false
|
||||
pattern: c0ke
|
||||
pattern: TBB
|
||||
required: false
|
||||
type: release_group
|
||||
- name: Dariush
|
||||
|
||||
@@ -412,7 +412,7 @@
|
||||
},
|
||||
{
|
||||
"tier": 5,
|
||||
"name": "whiterhino",
|
||||
"name": "WhiteRhino",
|
||||
"score": 45,
|
||||
"efficiency": 41.0,
|
||||
"releases": 74,
|
||||
@@ -653,15 +653,6 @@
|
||||
"std_dev": 0.0,
|
||||
"efficiency_delta": 27.0
|
||||
},
|
||||
{
|
||||
"tier": 5,
|
||||
"name": "guhzer",
|
||||
"score": 8.99,
|
||||
"efficiency": 41.0,
|
||||
"releases": 1,
|
||||
"std_dev": 0,
|
||||
"efficiency_delta": 14.000000000000007
|
||||
},
|
||||
{
|
||||
"tier": 5,
|
||||
"name": "GUHZER",
|
||||
@@ -709,7 +700,7 @@
|
||||
},
|
||||
{
|
||||
"tier": 6,
|
||||
"name": "threesome",
|
||||
"name": "THREESOME",
|
||||
"score": 5.03,
|
||||
"efficiency": 38.0,
|
||||
"releases": 1,
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
name: Blzt
|
||||
pattern: (?<=^|[\s.-])Blzt\b
|
||||
description: ''
|
||||
tags:
|
||||
- Release Group
|
||||
tests: null
|
||||
@@ -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
|
||||
81
regex_patterns/Colourisation.yml
Normal file
81
regex_patterns/Colourisation.yml
Normal 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
|
||||
@@ -1,5 +1,5 @@
|
||||
name: SM737
|
||||
pattern: SM737
|
||||
pattern: (?<=^|[\s.-])SM737\b
|
||||
description: ''
|
||||
tags:
|
||||
- Release Group
|
||||
|
||||
@@ -3,4 +3,4 @@ pattern: (?<=^|[\s.-])THREESOME\b
|
||||
description: ''
|
||||
tags:
|
||||
- Release Group
|
||||
tests: null
|
||||
tests: []
|
||||
|
||||
@@ -3,4 +3,4 @@ pattern: (?<=^|[\s.-])WhiteRhino\b
|
||||
description: ''
|
||||
tags:
|
||||
- Release Group
|
||||
tests: null
|
||||
tests: []
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
name: aviator
|
||||
pattern: (?<=^|[\s.-])aviator\b
|
||||
description: ''
|
||||
tags:
|
||||
- Release Group
|
||||
tests: null
|
||||
@@ -1,6 +0,0 @@
|
||||
name: c0ke
|
||||
pattern: (?<=^|[\s.-])c0ke\b
|
||||
description: ''
|
||||
tags:
|
||||
- Release Group
|
||||
tests: []
|
||||
@@ -1,6 +0,0 @@
|
||||
name: guhzer
|
||||
pattern: (?<=^|[\s.-])guhzer\b
|
||||
description: ''
|
||||
tags:
|
||||
- Release Group
|
||||
tests: null
|
||||
@@ -1,6 +0,0 @@
|
||||
name: invandraren
|
||||
pattern: (?<=^|[\s.-])invandraren\b
|
||||
description: ''
|
||||
tags:
|
||||
- Release Group
|
||||
tests: null
|
||||
@@ -1,6 +0,0 @@
|
||||
name: spectacle
|
||||
pattern: (?<=^|[\s.-])spectacle\b
|
||||
description: ''
|
||||
tags:
|
||||
- Release Group
|
||||
tests: null
|
||||
@@ -1,6 +0,0 @@
|
||||
name: threesome
|
||||
pattern: (?<=^|[\s.-])threesome\b
|
||||
description: ''
|
||||
tags:
|
||||
- Release Group
|
||||
tests: null
|
||||
@@ -1,6 +0,0 @@
|
||||
name: whiterhino
|
||||
pattern: (?<=^|[\s.-])whiterhino\b
|
||||
description: ''
|
||||
tags:
|
||||
- Release Group
|
||||
tests: null
|
||||
Reference in New Issue
Block a user