tweak(regex): add an optional any character between HDR10 and +

This commit is contained in:
santiagosayshey 2025-04-05 09:46:31 +10:50
parent 9f4c0dd925
commit 506bd23a92
1 changed files with 26 additions and 13 deletions

View File

@ -1,5 +1,5 @@
name: HDR10+
pattern: \bHDR10(\+|P(lus)?\b)
pattern: \bHDR10.?(\+|P(lus)?\b)
description: This regex matches `HDR10` when followed by either a plus sign `+`, `P`,
or `Plus`
tags:
@ -10,7 +10,7 @@ tests:
- expected: false
id: 1
input: HDR
lastRun: '2025-04-02T20:02:13.896309'
lastRun: '2025-04-05T09:25:21.372205'
matchSpan: null
matchedContent: null
matchedGroups: []
@ -18,7 +18,7 @@ tests:
- expected: false
id: 2
input: HDR+
lastRun: '2025-04-02T20:02:13.896309'
lastRun: '2025-04-05T09:25:21.372205'
matchSpan: null
matchedContent: null
matchedGroups: []
@ -26,7 +26,7 @@ tests:
- expected: false
id: 3
input: HDR10
lastRun: '2025-04-02T20:02:13.896309'
lastRun: '2025-04-05T09:25:21.372205'
matchSpan: null
matchedContent: null
matchedGroups: []
@ -34,7 +34,7 @@ tests:
- expected: true
id: 4
input: HDR10+
lastRun: '2025-04-02T20:02:13.896309'
lastRun: '2025-04-05T09:25:21.372205'
matchSpan:
end: 6
start: 0
@ -46,7 +46,7 @@ tests:
- expected: false
id: 5
input: HLG HDR
lastRun: '2025-04-02T20:02:13.896309'
lastRun: '2025-04-05T09:25:21.372205'
matchSpan: null
matchedContent: null
matchedGroups: []
@ -54,7 +54,7 @@ tests:
- expected: false
id: 6
input: SDR HDR
lastRun: '2025-04-02T20:02:13.896309'
lastRun: '2025-04-05T09:25:21.372205'
matchSpan: null
matchedContent: null
matchedGroups: []
@ -62,7 +62,7 @@ tests:
- expected: false
id: 7
input: PQ HDR
lastRun: '2025-04-02T20:02:13.896309'
lastRun: '2025-04-05T09:25:21.372205'
matchSpan: null
matchedContent: null
matchedGroups: []
@ -70,7 +70,7 @@ tests:
- expected: true
id: 8
input: HDR10P
lastRun: '2025-04-02T20:02:13.896309'
lastRun: '2025-04-05T09:25:21.372205'
matchSpan:
end: 6
start: 0
@ -82,7 +82,7 @@ tests:
- expected: true
id: 9
input: HDR10Plus
lastRun: '2025-04-02T20:02:13.896309'
lastRun: '2025-04-05T09:25:21.372205'
matchSpan:
end: 9
start: 0
@ -95,7 +95,7 @@ tests:
id: 10
input: Schindler's List (1993) 2160p UHD BluRay Hybrid REMUX HEVC DV HDR10+ TrueHD
Atmos 7.1 English-WiLDCAT
lastRun: '2025-04-02T20:02:13.896309'
lastRun: '2025-04-05T09:25:21.372205'
matchSpan:
end: 68
start: 62
@ -108,7 +108,7 @@ tests:
id: 11
input: La Maison S01 REPACK 2160p ATVP WEB-DL Dual-Audio DD+ 5.1 Atmos DV HDR10+
H.265-Kitsune
lastRun: '2025-04-02T20:02:13.896309'
lastRun: '2025-04-05T09:25:21.372205'
matchSpan:
end: 73
start: 67
@ -121,8 +121,21 @@ tests:
id: 12
input: Liu lang di qiu 2 AKA The Wandering Earth II 2023 2160p CHN UHD Blu-ray DoVi
HDR10 HEVC TrueHD 7.1 Atmos-ANKO
lastRun: '2025-04-02T20:02:13.896309'
lastRun: '2025-04-05T09:25:21.372205'
matchSpan: null
matchedContent: null
matchedGroups: []
passes: true
- expected: true
id: 13
input: Schindler's List (1993) 2160p UHD BluRay Hybrid REMUX HEVC DV HDR10 Plus
TrueHD Atmos 7.1 English-WiLDCAT
lastRun: '2025-04-05T09:25:21.372205'
matchSpan:
end: 72
start: 62
matchedContent: HDR10 Plus
matchedGroups:
- Plus
- lus
passes: true