fix(regex): Match 7.1 only when not surrounded by other digits
This commit is contained in:
parent
9d6da43cef
commit
5b7c95c144
|
|
@ -1,7 +1,37 @@
|
||||||
name: 7.1 Surround
|
name: 7.1 Surround
|
||||||
pattern: '7\.1'
|
pattern: '\D7\.1(\D|$)'
|
||||||
description: ''
|
description: ''
|
||||||
tags:
|
tags:
|
||||||
- Audio
|
- Audio
|
||||||
- Channel
|
- Channel
|
||||||
tests: []
|
tests:
|
||||||
|
- expected: true
|
||||||
|
id: 1
|
||||||
|
input: SomeName.TrueHD.7.1-GROUP
|
||||||
|
lastRun: '2025-11-26T00:12:58.921246'
|
||||||
|
matchSpan:
|
||||||
|
end: 20
|
||||||
|
start: 15
|
||||||
|
matchedContent: .7.1-
|
||||||
|
matchedGroups:
|
||||||
|
- '-'
|
||||||
|
passes: true
|
||||||
|
- expected: false
|
||||||
|
id: 2
|
||||||
|
input: SomeName.2007.1080p-GROUP
|
||||||
|
lastRun: '2025-11-26T00:12:58.921246'
|
||||||
|
matchSpan: null
|
||||||
|
matchedContent: null
|
||||||
|
matchedGroups: []
|
||||||
|
passes: true
|
||||||
|
- expected: true
|
||||||
|
id: 3
|
||||||
|
input: SomeName.TrueHD.7.1
|
||||||
|
lastRun: '2025-11-26T00:12:58.921246'
|
||||||
|
matchSpan:
|
||||||
|
end: 19
|
||||||
|
start: 15
|
||||||
|
matchedContent: .7.1
|
||||||
|
matchedGroups:
|
||||||
|
- ''
|
||||||
|
passes: true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue