File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ class DescriptorType {
4444 init ( data ) {
4545 if ( data ) {
4646 this . schemeIdUri = data . schemeIdUri ? data . schemeIdUri : null ;
47- this . value = data . value ? data . value . toString ( ) : null ;
47+ this . value = data . value !== null && data . value !== undefined ? data . value . toString ( ) : null ;
4848 this . id = data . id ? data . id : null ;
4949 // Only add the DVB extensions if they exist
5050 if ( data [ DashConstants . DVB_URL ] ) {
@@ -66,7 +66,7 @@ class DescriptorType {
6666 this . schemeIdUri === entry . schemeIdUri && (
6767 this . value ?
6868 ( this . value . toString ( ) . match ( entry . value ) ) : // check if provided value matches RegExp
69- ( '' . match ( entry . value ) ) // check if RegExp allows absent value
69+ ( '' . match ( entry . value ) ) // check if RegExp allows absent value
7070 )
7171 ) ;
7272 } )
You can’t perform that action at this time.
0 commit comments