Skip to content

Commit f163cd1

Browse files
committed
regexp is for complete value
1 parent 347b218 commit f163cd1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/regular_expressions.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,17 @@ export const expressions = {
4141
description: 'PP CC and LL are hexadecimal values'
4242
},
4343
AVS3video: {
44-
regex: /(avs3|lav3)(\.[a-fA-F\d]{2}){2}/,
44+
regex: /(avs3|lav3)(\.[a-fA-F\d]{2}){2}$/,
4545
format: "(avs3|lav3).<profile>.<level>",
4646
description: "profile and level are 2 hexadecimal digits"
4747
},
4848
AVS3audio: {
49-
regex: /av3a\.[a-fA-F\d]{1,2}/,
49+
regex: /av3a\.[a-fA-F\d]{1,2}$/,
5050
format: "av3a.<codec_id>",
5151
description: "codec_is is 0 for general high rate coding, 1 for lossless, 2 for general full rate coding"
5252
},
5353
AVS2audio: {
54-
regex: /cavs\.[a-fA-F\d]{1,2}/,
54+
regex: /cavs\.[a-fA-F\d]{1,2}$/,
5555
format: "cavs.<codec_id>",
5656
description: "codec_is is 0 for general high rate coding, 1 for lossless"
5757
},
@@ -64,12 +64,12 @@ export const expressions = {
6464
format: '<sample entry 4CC>.<general_profile_idc>.[LH]<op_level_idc>{.C<general_constraint_info>}{.S<general_sub_profile_idc>}{.O{<OlsIdx>}{+<MaxTid>}}'
6565
},
6666
MPEGH: {
67-
regex: /mhm(1|2)\.0x[a-fA-F\d]{2}/,
67+
regex: /mhm(1|2)\.0x[a-fA-F\d]{2}$/,
6868
format: '(mhm1 or mhm2).0xLL',
6969
description: 'LL is 2 hexadecimal digits'
7070
},
7171
CUVV: {
72-
regex: /cuvv.[01]+/,
72+
regex: /cuvv.[01]+$/,
7373
format: 'cuvv.<verison_bits>',
7474
description: '<version_bits> indicates the versions of HDR Vivid in the bitstream'
7575
}

0 commit comments

Comments
 (0)