Ignore null-bytes in the m3u8 parser
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -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; | ... | ... |
-
Please register or sign in to post a comment