c93e864c by jrivera

Ignore null-bytes in the m3u8 parser

1 parent c7eda3a9
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,7 @@
110 var match, event; 110 var match, event;
111 111
112 //strip whitespace 112 //strip whitespace
113 line = line.replace(/^\s+|\s+$/g, ''); 113 line = line.replace(/^[\u0000\s]+|[\u0000\s]+$/g, '');
114 if (line.length === 0) { 114 if (line.length === 0) {
115 // ignore empty lines 115 // ignore empty lines
116 return; 116 return;
......